Multiplatform Random Number Consistancy

BlitzMax Forums/BlitzMax Programming/Multiplatform Random Number Consistancy

But when it comes to computers there's no such thing as random. You seed the generator with 8283452 and you'll return the same set every single time. The same goes for any other seed.

So lets say you want to make a multiplayer game... And you want it to be random... But instead of sending the events across the line... you just seed both machines' random generators with the same seed. Now you don't have to send those events. You have both machines having the same randomness across the board. You know that the third random number you pull on the mac player's machine will be the exact same random number you pull on the pc machine.

Probably not a good example as I'm not sure you'd want to handle things like that, but that's just one possible reason for non-random random numbers.

Kanati