< Rebol Programming
USAGE:
RANDOM value /seed /secure /only
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.
- /only -- Return single value from series.
SOURCE CODE
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."
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.