Worst random numbers ever!

Blitz3D Forums/Blitz3D Programming/Worst random numbers ever!

Did get me thinking however about seeds and how they pull numbers from the pseudo-list depending on criteria defined by 'Rand' I knocked up this quick prog which dowes give some interesting values (look at the values compared the parameters defined)

Const seed = 10

SeedRnd seed
	
	x=Rand(1,20)
	y=Rand(1,20)
	z=Rand(1,50)

Print x+" "+y+" "+z

SeedRnd seed

	x=Rand(-20,1)
	y=Rand(-20,1)
	z=Rand(-50,1)
	
Print x+" "+y+" "+z

SeedRnd seed

Print Rand(100)

SeedRnd seed

Print Rand(1,100)

SeedRnd seed

Print Rand(0,100)

SeedRnd seed

Print Rand(0,101)

SeedRnd seed

Print Rand(-1,100)

WaitKey()