Hi Donald,
Here's one I use..
rnd: func [
{Return a random integer between min and max values inclusive}
min-val [integer!]
max-val [integer!]
][
min-val - 1 + random (max-val - min-val + 1)
]
Allen K
----- 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?
>
> --
>
> ---===///||| Donald Dalley |||\\\===---
> The World of AmiBroker Support
> http://webhome.idirect.com/~ddalley
> UIN/ICQ#: 65203020
>
>