Guest User

Untitled

a guest
Oct 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <time.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.         srand (time(NULL));
  9.         cout << ((rand()%RAND_MAX)%2 == 1 ? "Heads" : "Tails") << endl;
  10.         return 1;
  11. }
Add Comment
Please, Sign In to add comment