Re: TADS random numbers.
18 Aug 1995 19:34:07 -0700
In article <40up78$a97@agate.berkeley.edu>,
Gerry Kevin Wilson <whizzard@uclink.berkeley.edu> wrote:
>
><Pause to soothe throbbing headache.>
>
>Ok, much better. Now. How do I get rand() to give me truly, or at least
>semi-realistic, real numbers. I need much more unpredictable results
>than I'm getting. Several numbers in a row seem to really choke
>pathetically. If I call randomize() after each, I get a bunch of
>identical numbers. This after having to add self. in front of every
>variable in 200 lines of highly variable intensive code makes me want to cry.
>--
I seem to get good random numbers if I put randomize() in the init function:
init: function
{
randomize();
...
}
Calls subsequently made to rand() seem to work just fine and random.
Jim
jreese@leland.stanford.edu