Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: random implementation

From: allenk:powerup:au at: 8-Feb-2001 19:56

----- Original Message ----- From: "Andrew Martin" <[Al--Bri--xtra--co--nz]> To: <[rebol-list--rebol--com]> 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 using). ? random USAGE: RANDOM value /seed /secure DESCRIPTION: Returns a random value of the same datatype. RANDOM is an action value. ARGUMENTS: value -- Maximum value of result (Type: any) REFINEMENTS: /seed -- Restart or randomize /secure -- Returns a cryptographically secure random number. Cheers, Allen K