SeedRnd(millisecs())

Blitz3D Forums/Blitz3D Programming/SeedRnd(millisecs())

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.

big10p code has been edited... I have to reseed each time before I call a random number or I get the same number. I I take out the seedrnd(millisecs()) before it picks colors I get the same number each time I start the program.

But when I start the program I set seedrnd... correctly... so the initial value should be different each time I start the program.

BUT IT AIN'T!!! :O

The code has been edited... It still runs the same way when you remove the SECOND seedrnd from the
 
        For fillx = 0 To 10
	;For filly = 0 To 9
	;reseed=Rnd(99999)
	;SeedRnd(MilliSecs()+reseed)
		colr=Rnd(5)
		boardarea(fillx)=colr
	;Next
Next
You get the SAME number. Un rem them and new numbers... This is a bug I am sure!
-RZ