Checking if no one's player-specific variable is equal to value
#5

Quote:
Originally Posted by hotspicytaco
View Post
You didn't describe how the random number is being picked. Keep the number range small if you want players to guess it every time. Otherwise, pick a random one from all the numbers given by all participants. If you do it that way there will be always a chance to win for everyone.

Using foreach iterators may ease the job.
I was getting a random number 0-59 (because that's how the lottery we do irl works, not sure about other places). How would I pick a random one from the numbers entered by the participants? Would it be best to use an array, add all the numbers there and then choose one?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)