Problem with random function...
[1/3] from: e:lauret:gm:ail at: 29-Jun-2005 6:40
Hi |2380|3|25,
Why the random function always gives the same values, I don't understand:
*** rebol[]
ipadr: to-tuple rejoin [
random 255 "." random 255 "." random 255 "." random 255
]
print ipadr ***
ipadr is always 30.217.215.86 <http://30.217.215.86>, it never change why ?
Thanks
~~Manu~~
[2/3] from: AJMartin:orcon at: 29-Jun-2005 17:20
Manu wrote:
> Why the random function always gives the same values, I don't understand:
It does this so that you always have a predictable sequence of random
numbers.
> ipadr is always 30.217.215.86 <http://30.217.215.86>, it never change why
> ?
Try putting in:
random/seed now
at the start of your script.
A J Martin
[3/3] from: e::lauret::gmail::com at: 29-Jun-2005 7:25
Thank you very much A J !!! ;)
~~Manu~~
2005/6/29, A J Martin <[AJMartin--orcon--net--nz]>: