This is the seedable-rng Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:40:17 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
seedable-rng
A seedable random number generator.
Michael Fiano <mail@mfiano.net>
MIT
0.1.0
cl-pcg
(system).
ironclad
(system).
mfiano-utils
(system).
package.lisp
(file).
dictionary.lisp
(file).
generator.lisp
(file).
conditions.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
seedable-rng/seedable-rng.asd
seedable-rng/package.lisp
seedable-rng/dictionary.lisp
seedable-rng/generator.lisp
seedable-rng/conditions.lisp
seedable-rng/dictionary.lisp
package.lisp
(file).
seedable-rng
(system).
+dictionary+
(constant).
seedable-rng/generator.lisp
dictionary.lisp
(file).
seedable-rng
(system).
%%make-generator
(function).
%make-generator
(function).
internal-seed
(reader).
(setf internal-seed)
(writer).
kernel
(reader).
(setf kernel)
(writer).
make-inherited-seed
(function).
make-internal-seed
(function).
seed
(reader).
(setf seed)
(writer).
seedable-rng/conditions.lisp
generator.lisp
(file).
seedable-rng
(system).
generator
(reader method).
invalid-range
(condition).
empty-sequence
(condition).
lower-bound
(reader method).
seedable-rng-error
(condition).
upper-bound
(reader method).
Packages are listed by definition order.
seedable-rng
common-lisp
.
bool
(function).
die
(function).
element
(function).
float
(function).
generator
(generic reader).
generator
(structure).
get-seed
(function).
int
(function).
int/parity
(function).
invalid-range
(condition).
make-generator
(function).
make-seed
(function).
shuffle
(function).
%%make-generator
(function).
%make-generator
(function).
+dictionary+
(constant).
empty-sequence
(condition).
internal-seed
(reader).
(setf internal-seed)
(writer).
kernel
(reader).
(setf kernel)
(writer).
lower-bound
(generic reader).
make-inherited-seed
(function).
make-internal-seed
(function).
seed
(reader).
(setf seed)
(writer).
seedable-rng-error
(condition).
upper-bound
(generic reader).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Randomly generate a boolean value, with ‘probability‘ chance of a true result.
Simulate rolling a die of ‘sides‘ sides ‘count‘ number of times, summing the results. ‘modifier‘ is an additional value to sum with the final result.
Randomly choose a single element from the given sequence.
Randomly generate a single-precision floating point number to be within the lower bound and upper bound denoted by ‘min‘ and ‘max‘.
Return the seed string of ‘generator‘. In case an integer is needed, one is provided as a secondary return value.
Randomly generate an integer (fixnum) to be within the lower bound and upper bound denoted by ‘min‘ and ‘max‘. If ‘inclusive-p‘ is non-NIL (the default), then the range is inclusive.
Randomly generate an integer (fixnum) to be within the lower bound and upper bound denoted by ‘min‘ and ‘max‘. The parity (even or odd) of ‘min‘ determines the parity of the result.
Construct a generator suitable for generating random numbers. The type of ‘source‘ determines how
the generator is seeded:
null: If ‘source‘ is NIL, a seed is randomly generated. This is useful if you don’t care about
deterministic results.
string: Seeded using this string. Any generator with the same string seed will result in the same
sequence of random numbers.
generator: If given another generator as the source, a seed will be generated using the seed of the generator supplied. In this way, you can have distinct nested generators giving independently deterministic results.
Randomly shuffle the given sequence, non-destructively.
seedable-rng-error
)) ¶invalid-range
)) ¶invalid-range
)) ¶Jump to: | %
(
B D E F G I K L M S U |
---|
Jump to: | %
(
B D E F G I K L M S U |
---|
Jump to: | %
+
C I K S |
---|
Jump to: | %
+
C I K S |
---|
Jump to: | C D E F G I P S |
---|
Jump to: | C D E F G I P S |
---|