SeedRnd/Random sequences

Miscellaneous Forums/General Discussion/SeedRnd/Random sequences

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.

Hello.

I remember there was some contention over this issue in other versions of Blitz. Does Blitzmax have the same problem?

If I set the same seed on any PC, will I get the same series of random Ints (using Rand()) on every PC? Or does it vary?

Download, extract and run this. (25k, you do not need Blitzmax to test this!)

It'll create a file called 'results.txt' in the same location as the EXE.

My results are as follows:
9
1
96
85
58
84
59
31
3
95


(mods - reposted here so more people can test!)