justinpuckett

Untitled

May 27th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. for (int j = 0; j < balls; j++)
  2.     {
  3.         direction = "";
  4.  
  5.         for (int i = 1; i < slots; i++)
  6.         {
  7.             choice[i] = rand() % 2;
  8.             direction = direction + options[choice[i]];
  9.             total = total + choice[i];
  10.         }
  11.         cout << direction << endl;
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment