How to Randomize Cards That Never Repeat?
FallacyStudios
Member Posts: 970
Hi,
So I'm having some issues with trying to get a random number generator that never spits out the same card again. It seems to work for the most part, but I occasionally get repeats which should never happen. I'm just thinking that it isn't continually repeating and sometimes settles. I appreciate any help.
This is where I got the code I'm working with for it. Obviously some slight modifications to fit my purpose.
@ericzingler
https://forums.gamesalad.com/discussion/46274/how-can-i-limit-random-min-max-values
So I'm having some issues with trying to get a random number generator that never spits out the same card again. It seems to work for the most part, but I occasionally get repeats which should never happen. I'm just thinking that it isn't continually repeating and sometimes settles. I appreciate any help.
This is where I got the code I'm working with for it. Obviously some slight modifications to fit my purpose.
@ericzingler
https://forums.gamesalad.com/discussion/46274/how-can-i-limit-random-min-max-values
Answers
So anyone trying to do something similar I suggest using this if you want truly non repeated random numbers, words, or etc.