Last modified on 13 November 2012, at 10:52

REBOL Programming/random

USAGE:Edit

RANDOM value /seed /secure /only 

DESCRIPTION:Edit

Returns a random value of the same datatype.

RANDOM is an action value.

ARGUMENTSEdit

  • value -- Maximum value of result (Type: any)

REFINEMENTSEdit

  • /seed -- Restart or randomize
  • /secure -- Returns a cryptographically secure random number.
  • /only -- Return single value from series.

SOURCE CODEEdit

random: native[
    "Returns a random value of the same datatype." 
    value "Maximum value of result" 
    /seed "Restart or randomize" 
    /secure "Returns a cryptographically secure random number." 
    /only "Return single value from series."
]