SeedRnd

Archives Forums/BlitzPlus Bug Reports/SeedRnd

Vic 3 Babes(Posted 2007) [#1]
Using seeds of $7FFFFFFF or $FFFFFFFF with SeedRnd cause Rand(n1,n2) to always return n1.

SeedRnd $7FFFFFFF
For randnum=1 To 15
Text 0,randnum Shl 4,Rand(10,50)
Next

Since this only involves the highest and lowest integers, I think it suggests an overflow thing.

Don't think my Window system is relevant.


Floyd(Posted 2007) [#2]
This apparently fell through the cracks. The same bug in BlitzMax was fixed ages ago.

Analogous changes should have been made to BlitzPlus and Blitz3D.