random vocabulary
Factor handbook > Vocabulary index


Documentation
Generating random integers

Meta-data
Tags:algorithms
Authors:Doug Coleman, Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
no-random-number-generator tuple
too-many-samples tupleseq n


Generic words
WordStack effect
random( obj -- elt )
random-32*( obj -- n )
random-bytes*( n obj -- byte-array )
seed-random( obj seed -- obj )


Symbol words
random-generator
secure-random-generator
system-random-generator


Ordinary words
WordStack effect
beta-random-float( alpha beta -- n )
cauchy-random-float( median scale -- n )
chi-square-random-float( dof -- n )
delete-random( seq -- elt )
exponential-random-float( lambda -- n )
gamma-random-float( alpha beta -- n )
gumbel-random-float( loc scale -- n )
inv-gamma-random-float( shape scale -- n )
laplace-random-float( mean scale -- n )
logistic-random-float( loc scale -- n )
lognormal-random-float( mean sigma -- n )
no-random-number-generator( -- * )
normal-random-float( mean sigma -- n )
pareto-random-float( k alpha -- n )
poisson-random-float( mean -- n )
power-random-float( alpha -- n )
random-32( -- n )
random-bits( numbits -- n )
random-bits*( numbits -- n )
random-bytes( n -- byte-array )
random-integers( length n -- sequence )
random-unit( -- n )
random-units( length -- sequence )
randomize( seq -- randomized )
randomize-n-last( seq n -- seq )
rayleigh-random-float( mode -- n )
sample( seq n -- seq' )
student-t-random-float( dof -- n )
too-many-samples( seq n -- * )
triangular-random-float( low high -- n )
uniform-random-float( min max -- n )
von-mises-random-float( mu kappa -- n )
weibull-random-float( alpha beta -- n )
with-random( obj quot -- )
with-secure-random( quot -- )
with-system-random( quot -- )


Class predicate words
WordStack effect
no-random-number-generator?( object -- ? )
too-many-samples?( object -- ? )


Files


Children from resource:basis
VocabularySummary
random.datarandom.data vocabulary
random.dummyDummy RNG for testing
random.mersenne-twisterMersenne Twister random number generator
random.sfmtrandom.sfmt vocabulary
random.unixNative Unix RNG
random.windowsNative Windows RNG


Children from resource:extra
VocabularySummary
random.blum-blum-shubrandom.blum-blum-shub vocabulary
random.cLIBC random generator
random.cmwcrandom.cmwc vocabulary
random.lagged-fibonaccirandom.lagged-fibonacci vocabulary
random.rdrandRDRAND random generator


Children
VocabularySummary
random.privaterandom.private vocabulary