[REBOL] Re: True Random
From: sanghabum:aol at: 18-Aug-2001 6:26
[ammoncooke--yahoo--com] writes:
> need to obtane any kind of random in my script, but so far I get the same
> results although I try the /seed option. I must be doing something wrong:
>
Hi Ammon,
Seed resets the sequence, so you can produce the same "random" numbers over
and over.
Use Secure. Compare these results:
>> random/seed 100
>> random 100
== 41
>> random 100
== 31
>> random 100
== 46
>> random/seed 100
>> random 100
== 41 ;;; sequence repeats
>> random 100
== 31
>> random 100
== 46
>> random/secure 100
== 88 ;; no obvious repeating sequence
>> random/secure 100
== 69
>> random/secure 100
== 17
--Colin