REBOL Programming/random

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

USAGE:[edit]

RANDOM value /seed /secure /only 

DESCRIPTION:[edit]

Returns a random value of the same datatype.

RANDOM is an action value.

ARGUMENTS[edit]

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

REFINEMENTS[edit]

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

SOURCE CODE[edit]

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