I am having problems with the random number generator returning the same number each time for a simple coin flip problem.
#include <iostream>
#include <iomanip>
#include <ctime>
#include <cstdlib>
using namespace std;
int main()
{
srand(time(0));
//initialize tosses
int tosses, count, flip, heads, tails;
heads =...
User Profile
Collapse
-
Lew2106 started a topic Problems with srand(time(0)) returning the same value for a coin flip problemin CProblems with srand(time(0)) returning the same value for a coin flip problem
No activity results to display
Show More