Randomness

BlitzMax Forums/BlitzMax Beginners Area/Randomness

Lukasha(Posted 2013) [#1]
Hey.

Do you guys sometimes have trouble using the Rnd/Rand commands, too?

I'm currently coding sth and the randomness seemed to work fine (I used seedRnd millisecs()).
But suddenly I started getting the same random numbers everytime I ran the program.

So I guess my question is: How do I set up random numbers correctly, so that they differ every time I start the programm?

Thanks a lot in advance!


GfK(Posted 2013) [#2]
You're probably doing something wrong (which is impossible to say, without seeing code) - SeedRnd Millisecs() works fine.


Lukasha(Posted 2013) [#3]
You were right