Random

By toadflaxgames

It’s worth reminding yourself that if you are developing a game that makes use of a computer, and you want to generate random numbers, that computers are not very good at random.

They are great at almost-random, looks-random-to-me and might-as-well-be-random, but if it really needs to be totally random, as in a coin flip random, then it’s hard. My Countdown Game implementation doesn’t really need truly random numbers, online poker sites are not so lucky.

If you really need something to be random, and unduplicatable, then it’s possible, Jeff Atwood talks about it in a post on Card Shuffling on his blog.

You won’t often need poker site levels of randomness, just something that is good enough. I want people to just stop and think about what is good enough before you start throwing around Rand functions and taking bets from credit cards.

Leave a Reply