I set up my random generator like this:
srand(time(NULL));
I wrote a function, that returned random ints, but htis function was called
multiple time per second and it always returned the same numbers. I think
it is seeded with the seonds of my system clock
How can I seed it on milliseconds, I really need tk know, my program
depends on differnet random numbers
Thanks for your help in Advance
Best regards
Christian
On Wed, 20 Mar 2002 14:05:23 +0100, Christian Beckhoff
<christia...@gmx.de> wrote:
>How can I seed it on milliseconds, I really need tk know, my program
>depends on differnet random numbers
Hm, hört sich nach Deiner Beschreibung ok an. Kannst Du mal den Code
posten?
Und wech,
Wolfgang Schulz
--
e-Mail: Wolfgang.Sc...@nexgo.de
Don't call srand everytime the function is called; call it only once
at the start of you program.