Home made Random Function?

Blitz3D Forums/Blitz3D Programming/Home made Random Function?

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.

Ok, now I'm super curious as to what the problem really is. I tested this on 2 different machines and got the same result.

SeedRnd 1000
For x = 1 To 10
	Print Rand(0, 1000)
Next

Print 

SeedRnd "myseed"
For x = 1 To 10
	Print Rand(0, 1000)
Next

WaitKey()


and the results were

557
293
171
327
442
443
807
864
229
11

737
343
122
318
973
755
728
939
910
416


The interesting thing to me is that this appears to be working properly, BUT,... I took that code from an earlier thread (linked above) and it had given different results than what was listed there. (maybe an older version of blitz?)

Can anyone enlighten?