Multiplatform Random Number Consistancy

BlitzMax Forums/BlitzMax Programming/Multiplatform Random Number Consistancy

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The following program prints the same random number on both Mac OS X and Linux, and both use two different C libraries. Which means that Blitz generates it's own random numbers. I haven't tested in Windows however, so I may be wrong.

SeedRnd 1000
Print "Random: " + Rnd(0, 1000) 
' Returns 89.911744965587289