justinpuckett

Untitled

May 27th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. int total[50];
  2. int count = 0;
  3.  
  4. for (i = 1; i < (slots * balls) + 1; i++)
  5. {
  6.     choice[i] = rand() % 2;
  7.    
  8.    
  9.     direction = direction + options[choice[i]];
  10.     if (i % (slots) == 0)
  11.     {
  12.         cout << direction << endl;
  13.         direction = "";
  14.     }
  15.    
  16.    
  17.     count = count + choice[i];
  18.     if (i % (slots) == 0)
  19.     {
  20.         total[(i / slots) - 1] = count;
  21.         count = 0;
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment