Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int total[50];
- int count = 0;
- for (i = 1; i < (slots * balls) + 1; i++)
- {
- choice[i] = rand() % 2;
- direction = direction + options[choice[i]];
- if (i % (slots) == 0)
- {
- cout << direction << endl;
- direction = "";
- }
- count = count + choice[i];
- if (i % (slots) == 0)
- {
- total[(i / slots) - 1] = count;
- count = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment