random ( obj -- elt )
Generating random integers

Next:random-32 ( -- n )


Vocabulary
random

Inputs and outputs
objan object
elta random element


Word description
Outputs a random element of the input object, or outputs f if the object contains no elements.

Examples
USING: random prettyprint ; 10 random .
3

USING: random prettyprint ; SYMBOL: heads SYMBOL: tails { heads tails } random .
heads


Definition

GENERIC: random ( obj -- elt )


Methods