RNG pattern problem

You are creating a new random number generator each loop, using randomize() on the global RNG, these two things are strange but shouldn’t affect the odds. It may be better to create only one RandomNumberGenerator or use the global randi_range, without calling randomize() so often.

Pure random is exactly that, in your small sample size you may never see certain cards, in fact it’s quite likely; you are just lucky!

1 Like