This is the mt19937 Reference Manual, version 1.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:07:11 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
mt19937
Portable MT19937 Mersenne Twister random number generator
Douglas T. Crosher and Raymond Toy
Public domain
1.1
mt19937.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
mt19937/mt19937.lisp
mt19937
(system).
%random-double-float
(function).
%random-single-float
(function).
*random-state*
(special variable).
init-random-state
(function).
make-random-state
(function).
random
(compiler macro).
random
(function).
random-chunk
(function).
random-state
(structure).
random-state-p
(function).
%random-integer
(function).
copy-random-state
(function).
generate-seed
(function).
int-init-random-state
(function).
make-random-object
(function).
mt19937-b
(constant).
mt19937-c
(constant).
mt19937-lower-mask
(constant).
mt19937-m
(constant).
mt19937-n
(constant).
mt19937-upper-mask
(constant).
random-chunk-length
(constant).
random-mt19937-update
(function).
random-state-state
(reader).
(setf random-state-state)
(writer).
vec-init-random-state
(function).
Packages are listed by definition order.
mt19937
common-lisp
.
%random-double-float
(function).
%random-single-float
(function).
*random-state*
(special variable).
init-random-state
(function).
make-random-state
(function).
random
(compiler macro).
random
(function).
random-chunk
(function).
random-state
(structure).
random-state-p
(function).
%random-integer
(function).
copy-random-state
(function).
generate-seed
(function).
int-init-random-state
(function).
make-random-object
(function).
mt19937-b
(constant).
mt19937-c
(constant).
mt19937-lower-mask
(constant).
mt19937-m
(constant).
mt19937-n
(constant).
mt19937-upper-mask
(constant).
random-chunk-length
(constant).
random-mt19937-update
(function).
random-state-state
(reader).
(setf random-state-state)
(writer).
vec-init-random-state
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Handle the single or double float case of RANDOM. We generate a float
in [0d0, 1d0) by clobbering the mantissa of 1d0 with random bits (52 bits);
this yields a number in [1d0, 2d0). Then 1d0 is subtracted.
Handle the single or double float case of RANDOM. We generate a float
in [0f0, 1f0) by clobbering the mantissa of 1f0 with random bits (23 bits);
this yields a number in [1f0, 2f0). Then 1f0 is subtracted.
Generate an random state vector from the given SEED. The seed can be either an integer or a vector of (unsigned-byte 32)
Make a random state object. If STATE is not supplied, return a copy of the default random state. If STATE is a random state, then return a copy of STATE. If STATE is T then return a random state generated from the universal time. To make a random state from an integer seed, try “(make-random-object :state (init-random-state <seed>))”.
Generates a uniformly distributed pseudo-random number greater than or equal to zero and less than Arg. State, if supplied, is the random state to use.
Generates an integer greater than or equal to zero and less than Arg.
Successive chunks are concatenated without overlap to construct integers
larger than a single chunk. The return value has this property:
If two integers are generated from the same state with Arg equal to 2^m and 2^n,
respectively, then bit k is the same in both integers for 0 <= k < min(m,n).
Each call to %RANDOM-INTEGER consumes at least one chunk; bits left over
from previous chunks are not re-used.
Jump to: | %
(
C F G I M R V |
---|
Jump to: | %
(
C F G I M R V |
---|
Jump to: | *
C M R S |
---|
Jump to: | *
C M R S |
---|
Jump to: | F M P R S |
---|
Jump to: | F M P R S |
---|