//Coin Toss //Robert Walliczek #include #include #include #include int toss, count = 0; long double Hcount = 0, Tcount = 0, total = 0; main() { cout <<"You are flipping a coin."<> count; srand(static_cast(time(NULL))); //seed the random number generator for (total = 0; total <= count; total++) { toss = (rand() % 2) + 1; //get a random # between 1 and 2 switch(toss) { case 1: cout << "HEADS"<