-
RANDOM-STATE:*GENERATOR*VARIABLE
The default random number generator used by RANDOM.
See RANDOM
random-staterandom-state -
RANDOM-STATE:RANDOM-INT(generator from to)FUNCTION
Returns a random integer in [FROM, TO].
See GENERATOR See RANDOM-BYTES
random-staterandom-state -
FRUGAL-UUID:RANDOM-INTEGER(limit)FUNCTION
Generate a non-negative random number below LIMIT.
When no alternative source of randomness is provided via INITIALIZE-RANDOM, then sets up its own random number generator via RANDOM-NUMBER-GENERATOR-INIT-FUNCTION when first invoked.
frugal-uuidfrugal-uuid -
SOFTWARE-EVOLUTION-LIBRARY/COMPONENTS/TEST-SUITE:CREATE-RANDOM-TEST-SUITE
(test-suite num-random-tests)FUNCTION
Create an instance of random-test-suite containing random subset of scripted tests.
software-evolution-library/components/test-suitesoftware-evolution-library/components/test-suite -
MLEP:RANDOM-FROM-TO(from to &key (state
*random-state*))FUNCTION
@arg[from]{the lower bound (inclusive)} @arg[to]{the upper bound (exclusive)} @arg[state]{a random state object containing information used by the pseudo-random number generator} @return{a random number} Gives a random number in certain range.
mlepmlep -
RANDOM-STATE:DRAW(n &optional (generator
*generator*))FUNCTION
Returns a vector with N random samples in [0,1[.
See ENSURE-GENERATOR See RANDOM-UNIT
random-staterandom-state -
DARTS.LIB.UUID:RANDOM-UUID(&key (generator nil
have-generator) (random-state *random-state* have-random-state))FUNCTION
Construct a new random UUID. If
generator
is supplied, it must be a function callable with a single argument (the number of random bytes to generate), which answers an array of "random"(unsigned-byte 8)
numbers. If no generator function is provided, the UUID is generated using Lisps built-in
randomfunction, passing the given
random-statealong, which defaults to the value of the global
random-state` variable.darts.lib.uuiddarts.lib.uuid -
RANDOM-DISTRIBUTIONS:*MT-RANDOM-STATE*VARIABLE
Unlike the reference implementation, we'll initialize the random state to a hopefully somewhat random & unique value.
cl-randistrandom-distributions -
PCG:MAKE-PCG(&key (seed nil) (stream-id 0))
FUNCTION
Create and return a new PCG.
If
seed
isnil
, a fresh random seed will be generated with the implementations
cl:random` function, as if by:(random ... (make-random-state t))
cl-pcgpcg -
CLJ-COLL:RAND(&optional n)FUNCTION
([][n]) Returns a random double-precision floating point number between 0 (inclusive) and n (default 1) (exclusive).
To ensure thread safety if you are calling rand concurrently, consider establishing distinct per-thread RANDOM-STATE values.
See also: CL:RANDOM, CL:MAKE-RANDOM-STATE, CL:RANDOM-STATE
clj-collclj-coll