with-system-random ( quot -- ) - Factor Documentation

with-system-random ( quot -- )
Generating random integers



Vocabulary
random

Inputs
quot a quotation


Outputs
None

Word description
Calls the quotation with the system's random number generator in a dynamic variable. All random numbers will be generated using this random number generator.

See also
with-random , with-secure-random

Definition
USING: kernel namespaces ;

IN: random

: with-system-random ( quot -- )
system-random-generator get swap with-random ; inline

AltStyle によって変換されたページ (->オリジナル) /