----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 08, 2000 2:37 AM
Subject: [REBOL] RANDOM/range?


>
> Hello, Rebols:
>
> If I understand the beta manual correctly, RANDOM does not yet have a
range
> argument.
>
> I don't want the starting point to be 1 but rather to be somewhere around
30.
> The following accomplishes most of what was wanted:
>
>      RANDOM/SEED NOW/TIME
>      pause: RANDOM 30
>      EITHER pause > 30 [ WAIT pause ][ WAIT RANDOM 50 ]
>
> Is there a better REBOL way to simulate a range of, say, 30 => 50?
>
> Does the seed need to be done once or on each pass?

Sorry, missed this q on the last post...
The seed only needs to be set once in a script, to prevent the same sequence
of numbers each time
a script is run.

Cheers,

Allen K


>
> --
>
>                 ---===///||| Donald Dalley |||\\\===---
>                      The World of AmiBroker Support
>                   http://webhome.idirect.com/~ddalley
>                           UIN/ICQ#: 65203020
>
>

Reply via email to