True Random
[1/7] from: ammoncooke:ya:hoo at: 19-Aug-2001 22:11
Odd that it should work like that. It seems as though if the seed wasn't
changed the result shouldn't either.
Thanks!!
Ammon
[2/7] from: fsievert:uos at: 20-Aug-2001 8:58
Try this:
random/seed checksum form now/precise
CU,
Frank
On Sun, 19 Aug 2001, Ammon Cooke wrote:
[3/7] from: petr::krenzelok::trz::cz at: 20-Aug-2001 9:09
Frank Sievertsen wrote:
> Try this:
> random/seed checksum form now/precise
>
you can even use checksum/secure ....
-pekr-
[4/7] from: sanghabum:aol at: 20-Aug-2001 11:23
Hi Ammon
> > > Odd that it should work like that. It seems as though if the seed
wasn'
> t
> > > changed the result shouldn't either.
I *think* what is happening is that /Seed and /Secure refinements are in
effect mutually exclusive options. I start random sequences simply by doing
(say)
Random/secure 100
the 100 here isn't a seed it's the range (maximum value of the result). If
I'd written:
Random/seed 100
Then I get no value returned, but a seed value is set internally.
The on line help on random is obscure as it does not distinguish the two
possible meanings of the number
As far as I can tell there is no need to (or point in) setting a seed when
using /secure. But don't take that as definitive: the Core 2.5 manual fails
to mention Random/secure
--Colin
[5/7] from: ammoncooke:yaho:o at: 18-Aug-2001 0:30
Hi,
I 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:
append rnd-item random/only/seed [10 24 76 19 20 99 82 73 23 88 77 55 11 28] now/time
lst1-rnd: random/only/seed pplBlock rejoin [now/time]
lst2-rnd: random/only/seed lst2/data rejoin [now/time rnd-item]
append gen-ppl/data rejoin [lst1-rnd "->" lst2-rnd]
remove find lst2/lines lst2-rnd
remove find pplBlock lst1-rnd
Thanks!!
Ammon
[6/7] 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
[7/7] from: g:santilli:tiscalinet:it at: 18-Aug-2001 14:15
Hello Ammon!
On 18-Ago-01, you wrote:
AC> I need to obtane any kind of random in my script, but so
AC> far I get the same results although I try the /seed option. I
AC> must be doing something wrong:
At the start use:
random/seed now
then just use random/only etc.
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/