Josh Brodak

Greenhorn
+ Follow
since Mar 24, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Josh Brodak

I am trying to generate random integers for a game, and then display the values as a hand for the player and the computer. The problem is that it prints out the hands multiple times; essentially leaving all values as zeros and randomizing each value in the array one at a time, and reprinting the hand as it changes each value.

Can someone point out what I am doing that would cause this, and maybe how to fix it.



And these are the results I keep getting:

11 years ago