Rand() is not random...

Blitz3D Forums/Blitz3D Programming/Rand() is not random...

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.

I just:

SeedRnd Millisecs()
newseed=rnd(9999)+ 911
SeedRnd Millisecs()+newseed


I am assuming that the second instance of calling the code resets the first... That way I make a more random seed. It seems to work, if I am doing this wrong I wouldlike to know.

On Rob... I find him funny... his wit is very dry and droll but I like it.

On Flameduck... Hmmm then halo is gone??? (I have been out of this board for a while!)



The random seed is also not completely random, if you run it twice on the same exact time (on different machines) then the generated random seeds will be the same, so you might as well just use Millisecs() and forget about using the second seeding.
I could be wrong tho' :)