Random algorithm
Brian Yennie
briany at qldlearning.com
Wed Nov 12 15:46:38 EST 2008
Although this is fit for 99% of people's purposes, I would be careful
about expecting randomSeed or multiple samples to actually improve the
underlying random algorithm.
For sake of a silly example, suppose you had a "bad" random algorithm
which only returns even numbers. No matter how many samples and seeds
you took, you'd still have a hard time generating odd numbers.
Point being, using a random() function many times doesn't necessarily
make it of better quality for crypto or other serious purposes. It
just makes it slightly more obscure to the human eye.
> Mark Brownell wrote:
>> I'm surprised that the random seed was not mentioned.
>
> Me too. Wouldn't it suffice to do this before each run?:
>
> set the randomSeed to random(4570422)
>
>
> --
> Richard Gaskin
> Managing Editor, revJournal
More information about the use-livecode
mailing list