Quickutilβ

Lisp utilities on demand

Fork me on GitHub
search

There are 5 utilities.

reseed-random-state v1.0

Reseed the random state use by the random number generator.

Provides
reseed-random-state
Source Code
 
random-between v1.0

Generate a random integer between a and b, inclusive.

Provides
random-between
Source Code
 
shuffle v1.0

Returns a random permutation of sequence bounded by start and end. Original sequece may be destructively modified, and share storage with the original one. Signals an error if sequence is not a proper sequence.

Provides
shuffle
Requires
proper-list-length/last-car
Source Code
 
random-elt v1.0

Returns a random element from sequence bounded by start and end. Signals an error if the sequence is not a proper non-empty sequence, or if end and start are not proper bounding index designators for sequence.

Provides
random-elt
Requires
proper-list-length/last-car
Source Code
 
gaussian-random v1.0

Returns two gaussian random double floats as the primary and secondary value, optionally constrained by min and max. Gaussian random numbers form a standard normal distribution around 0.0d0.

Sufficiently positive min or negative max will cause the algorithm used to take a very long time. If min is positive it should be close to zero, and similarly if max is negative it should be close to zero.

Provides
gaussian-random
Source Code