random ( obj -- elt )
Generating random integers

Next:randoms ( length obj -- seq )


Vocabulary
random

Inputs
objan object


Outputs
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


See also
random*, randoms, randoms-as

Definition