Rebol Programming/random

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

RANDOM value /seed /secure /only 

DESCRIPTION:[edit | edit source]

Returns a random value of the same datatype.

RANDOM is an action value.

ARGUMENTS[edit | edit source]

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

REFINEMENTS[edit | edit source]

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

SOURCE CODE[edit | edit source]

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."
]