comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: random number trap
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: random number trap [message #4983 is a reply to message #4971] Wed, 30 August 1995 00:00 Go to previous messageGo to previous message
rolf is currently offline  rolf
Messages: 2
Registered: August 1995
Junior Member
In article <DE33pI.G1D@hpl.hp.com>, peter@hpl.hp.com (Peter Webb) writes:
> So if you repeatedly call a procedure that
> calls randomu, the return will be the same if the calls occur within a
> second of each other, but will be different if they are in different
> seconds.
>

According to all I know about pseudo (!) random number generators,
it is crucial that the updated seed is passed on to the next call.
Even if your system clock was updated on a nanosecond basis you
would get nothing like random behaviour, but something very strictly
correlated with the execution time of your program. If interested,
read something about the theory of RNG, e.g. Numerical recipes.

Rolf

+----------------------------------------------------------- ----------------+
| Rolf P. W"urtz | mailto:rolf@cs.rug.nl | URL: http://www.cs.rug.nl/~rolf/ |
| Department of Computing Science, University of Groningen, The Netherlands |
+----------------------------------------------------------- ----------------+
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: MESSAGE question
Next Topic: DROPLIST bug ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:32:08 PDT 2025

Total time taken to generate the page: 2.16342 seconds