A
Alexander Erlich
Hello,
I have written a function that returns a random number in dependence of the
time running on the current system. The problem is that initializing two
variables with this function _one after another_, returns always the same
result:
function rndnumber () {...}
number1 = rndnumber();
number2 = rndnumber(); // number1=number2 !
I conclude that the initialization process is actually happening in the same
millisecond, which is a problem. Therefore, I would like to make the program
sleep (or call it wait ;-) for a while (e.g. some 10ms). How can I do that?
Thx a lot in advance.
Regards
Alexander
I have written a function that returns a random number in dependence of the
time running on the current system. The problem is that initializing two
variables with this function _one after another_, returns always the same
result:
function rndnumber () {...}
number1 = rndnumber();
number2 = rndnumber(); // number1=number2 !
I conclude that the initialization process is actually happening in the same
millisecond, which is a problem. Therefore, I would like to make the program
sleep (or call it wait ;-) for a while (e.g. some 10ms). How can I do that?
Thx a lot in advance.
Regards
Alexander