[REBOL] Re: random implementation
From: allenk:powerup:au at: 8-Feb-2001 19:56
----- Original Message -----
From: "Andrew Martin" <[Al--Bri--xtra--co--nz]>
Sent: Thursday, February 08, 2001 12:38 PM
Subject: [REBOL] Re: random implementation
> > How is the random command implemented? If it is based on a linear
> congruential algorithm, what are the multiplier, increment and modulus? Or
> to put it another way, someone hasn't just looked at the incredibly dire
> ANSI C rand() implementation and copied it have they? (Please say no...)
> I believe it's based on the function you suggest. Sorry.
But there is also random/secure. (Depends on the version of rebol you are
RANDOM value /seed /secure
Returns a random value of the same datatype.
RANDOM is an action value.
value -- Maximum value of result (Type: any)
/seed -- Restart or randomize
/secure -- Returns a cryptographically secure random number.