The random-state Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The random-state Reference Manual

This is the random-state Reference Manual, version 0.1.0, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 04:31:05 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

About random-state

This is a collection of pseudo random number generators (PRNGs). While Common Lisp does provide a RANDOM function, it does not allow the user to pass an explicit SEED, nor to portably exchange the random state between implementations. This can be a headache in cases like games, where a controlled seeding process can be very useful.

How To

For both curiosity and convenience, this library offers multiple algorithms to generate random numbers, as well as a bunch of generally useful methods to produce desired ranges.

(loop with generator = (random-state:make-generator :mersenne-twister-32 123)
      repeat 10
      collect (random-state:random-int generator 0 10))
=> (5 6 6 3 2 8 6 9 6 1)

The library does make some efforts to be reasonably efficient while preserving usability, but each of the implementations could be optimised further. For performance critical sections, you might want to take matters into your own hands and only rely on random-byte for the most direct access to the generator. If that still is not sufficiently fast, creating a tailored implementation of an algorithm based on the source code of this library should not be difficult.

Several methods to compute random numbers in certain ranges are provided in advance: random-byte, random-bytes, random-unit, random-float, and random-int. Each of those can also be used with just the name of the generator you'd like to use as the first argument, in which case a global instance will be used.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 random-state

Author

Nicolas Hafner <shinmera@tymoon.eu>

Home Page

https://github.com/Shinmera/random-state

License

Artistic

Description

Portable random number generation.

Version

0.1.0

Dependency

documentation-utils

Source

random-state.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 random-state.asd

Location

random-state.asd

Systems

random-state (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 random-state/package.lisp

Parent

random-state (system)

Location

package.lisp

Packages

random-state


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 random-state/toolkit.lisp

Dependency

package.lisp (file)

Parent

random-state (system)

Location

toolkit.lisp

Exported Definitions

hopefully-sufficiently-random-seed (function)

Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.4 random-state/generator.lisp

Dependency

toolkit.lisp (file)

Parent

random-state (system)

Location

generator.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.5 random-state/linear-congruence.lisp

Dependency

generator.lisp (file)

Parent

random-state (system)

Location

linear-congruence.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.6 random-state/mersenne-twister.lisp

Dependency

linear-congruence.lisp (file)

Parent

random-state (system)

Location

mersenne-twister.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.7 random-state/middle-square.lisp

Dependency

mersenne-twister.lisp (file)

Parent

random-state (system)

Location

middle-square.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.8 random-state/pcg.lisp

Dependency

middle-square.lisp (file)

Parent

random-state (system)

Location

pcg.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.9 random-state/rc4.lisp

Dependency

pcg.lisp (file)

Parent

random-state (system)

Location

rc4.lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.10 random-state/tt800.lisp

Dependency

rc4.lisp (file)

Parent

random-state (system)

Location

tt800.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.11 random-state/documentation.lisp

Dependency

tt800.lisp (file)

Parent

random-state (system)

Location

documentation.lisp


Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 random-state

Source

package.lisp (file)

Nickname

org.shirakumo.random-state

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: generator-class NAME

Attempts to find the named generator class. Accepts strings, symbols, and classes.

If no generator can be found, an error is signalled.

Package

random-state

Source

generator.lisp (file)

Function: global-generator NAME

Returns a global instance of a generator.

See MAKE-GENERATOR

Package

random-state

Source

generator.lisp (file)

Function: hopefully-sufficiently-random-seed ()

Attempts to find a sufficiently random seed.

On Unix, this reads 64 bits from /dev/urandom
On Windows+SBCL, this reads 64 bits from SB-WIN32:CRYPT-GEN-RANDOM Otherwise it uses an XOR of GET-INTERNAL-REAL-TIME and GET-UNIVERSAL-TIME.

Package

random-state

Source

toolkit.lisp (file)

Function: make-generator GENERATOR &optional SEED &rest INITARGS

Creates a generator of the given type.

The GENERATOR can be any name supported by GENERATOR-CLASS.
After construction, RESEED is called on the generator with the given SEED.

See GENERATOR-CLASS
See RESEED

Package

random-state

Source

generator.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Generic functions

Generic Function: bytes OBJECT

Returns the number of bytes (bits) that a RANDOM-BYTE call of this generator produces.

Package

random-state

Methods
Method: bytes (GENERATOR generator)

automatically generated reader method

Source

generator.lisp (file)

Generic Function: random-byte GENERATOR

Returns an integer of fresh random output from the generator.

The integer is at most 2^(BYTES GENERATOR)-1 and at least 0.

See GENERATOR
See BYTES

Package

random-state

Source

generator.lisp (file)

Methods
Method: random-byte (GENERATOR tt800)
Source

tt800.lisp (file)

Method: random-byte (GENERATOR rc4)
Source

rc4.lisp (file)

Method: random-byte (GENERATOR pcg)
Source

pcg.lisp (file)

Method: random-byte (GENERATOR middle-square)
Source

middle-square.lisp (file)

Method: random-byte (GENERATOR mersenne-twister-64)
Source

mersenne-twister.lisp (file)

Method: random-byte (GENERATOR mersenne-twister-32)
Source

mersenne-twister.lisp (file)

Method: random-byte (GENERATOR linear-congruence)
Source

linear-congruence.lisp (file)

Method: random-byte GENERATOR
Generic Function: random-bytes GENERATOR BYTES

Returns an integer of fresh random output from the generator.

The integer is at most 2^(BYTES)-1 and at least 0.

See GENERATOR
See RANDOM-BYTE

Package

random-state

Source

generator.lisp (file)

Methods
Method: random-bytes (GENERATOR generator) (BYTES integer)
Method: random-bytes GENERATOR BYTES
Generic Function: random-float GENERATOR FROM TO

Returns a float of fresh random output from the generator.

The returned value is a double-float between FROM and TO.

See GENERATOR

Package

random-state

Source

generator.lisp (file)

Methods
Method: random-float (GENERATOR generator) (FROM real) (TO real)
Method: random-float (GENERATOR generator) (FROM real) (TO real) around
Method: random-float GENERATOR FROM TO
Generic Function: random-int GENERATOR FROM TO

Returns an integer of fresh random output from the generator.

The returned value is an integer between FROM and TO.

See GENERATOR

Package

random-state

Source

generator.lisp (file)

Methods
Method: random-int (GENERATOR generator) (FROM integer) (TO integer)
Method: random-int (GENERATOR generator) (FROM integer) (TO integer) around
Method: random-int GENERATOR FROM TO
Generic Function: random-unit GENERATOR

Returns a unit float of fresh random output from the generator.

The returned value is a double-float between 0.0 and 1.0.

See GENERATOR

Package

random-state

Source

generator.lisp (file)

Methods
Method: random-unit (GENERATOR generator)
Method: random-unit GENERATOR
Generic Function: reseed GENERATOR &optional NEW-SEED

Reinitialises the generator with the new seed.

The seed should be an integer. If not given, the current value returned by HOPEFULLY-SUFFICIENTLY-RANDOM-SEED is used.

Package

random-state

Source

generator.lisp (file)

Methods
Method: reseed (GENERATOR tt800) &optional NEW-SEED
Source

tt800.lisp (file)

Method: reseed (GENERATOR rc4) &optional NEW-SEED
Source

rc4.lisp (file)

Method: reseed (GENERATOR pcg) &optional NEW-SEED
Source

pcg.lisp (file)

Method: reseed (GENERATOR middle-square) &optional NEW-SEED
Source

middle-square.lisp (file)

Method: reseed (GENERATOR mersenne-twister-64) &optional NEW-SEED
Source

mersenne-twister.lisp (file)

Method: reseed (GENERATOR mersenne-twister-32) &optional NEW-SEED
Source

mersenne-twister.lisp (file)

Method: reseed (GENERATOR mersenne-twister) &optional NEW-SEED after
Source

mersenne-twister.lisp (file)

Method: reseed (GENERATOR linear-congruence) &optional NEW-SEED
Source

linear-congruence.lisp (file)

Method: reseed (GENERATOR generator) &optional NEW-SEED around
Method: reseed GENERATOR &optional NEW-SEED
Generic Function: seed OBJECT

Returns the seed that was used to initialise the generator.

Package

random-state

Methods
Method: seed (GENERATOR generator)

automatically generated reader method

Source

generator.lisp (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.3 Classes

Class: generator ()

General class for any random number generator.

See SEED
See BYTES
See MAKE-GENERATOR
See RANDOM-BYTE
See RANDOM-BYTES
See RANDOM-UNIT
See RANDOM-FLOAT
See RANDOM-INT
See RESEED

Package

random-state

Source

generator.lisp (file)

Direct superclasses

standard-object (class)

Direct subclasses
Direct methods
Direct slots
Slot: seed
Initargs

:seed

Readers

seed (generic function)

Writers

set-seed (generic function)

Slot: bytes
Initform

(error "missing bytes initform from generator definition.")

Readers

bytes (generic function)

Direct Default Initargs
InitargValue
:seed(error "seed required.")
Class: linear-congruence ()

A very simple random number generator based on linear congruence.

See https://en.wikipedia.org/wiki/Linear_congruential_generator

Package

random-state

Source

linear-congruence.lisp (file)

Direct superclasses

generator (class)

Direct methods
Direct slots
Slot: state
Readers

state (generic function)

Writers

(setf state) (generic function)

Slot: multiplier
Initargs

:multiplier

Readers

multiplier (generic function)

Writers

set-multiplier (generic function)

Slot: increment
Initargs

:increment

Readers

increment (generic function)

Writers

set-increment (generic function)

Slot: bytes
Initargs

:bytes

Writers

set-bytes (generic function)

Direct Default Initargs
InitargValue
:bytes64
:multiplier6364136223846793005
:increment1442695040888963407
Class: mersenne-twister-32 ()

The de-facto standard random number generator algorithm.

See https://en.wikipedia.org/wiki/Mersenne_Twister See http://www.acclab.helsinki.fi/~knordlun/mc/mt19937.c

Package

random-state

Source

mersenne-twister.lisp (file)

Direct superclasses

mersenne-twister (class)

Direct methods
Direct slots
Slot: bytes
Initform

32

Direct Default Initargs
InitargValue
:n624
:m397
:upper2147483648
:lower2147483647
:magic(random-state::barr 32 0 2567483615)
:shiftops#((-11 4294967295) (7 2636928640) (15 4022730752) (-18 4294967295))
Class: mersenne-twister-64 ()

A 64 bit variant of the Mersenne Twister algorithm.

See MERSENNE-TWISTER-32
See http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/C-LANG/mt19937-64.c

Package

random-state

Source

mersenne-twister.lisp (file)

Direct superclasses

mersenne-twister (class)

Direct methods
Direct slots
Slot: bytes
Initform

64

Direct Default Initargs
InitargValue
:n312
:m156
:upper18446744071562067968
:lower2147483647
:magic(random-state::barr 64 0 13043109905998158313)
:shiftops#((-29 6148914691236517205) (17 8202884508482404352) (37 18444473444759240704) (-43 18446744073709551615))
Class: middle-square ()

An incredibly primitive, and basically in practise useless, random number algorithm.

See https://en.wikipedia.org/wiki/Middle-square_method

Package

random-state

Source

middle-square.lisp (file)

Direct superclasses

generator (class)

Direct methods
Direct slots
Slot: bytes
Writers

set-bytes (generic function)

Slot: state
Readers

state (generic function)

Writers

(setf state) (generic function)

Class: pcg ()

An adaptation of the PCG rng.

See http://www.pcg-random.org

Package

random-state

Source

pcg.lisp (file)

Direct superclasses

generator (class)

Direct methods
Direct slots
Slot: state
Initargs

:state

Readers

state (generic function)

Writers

(setf state) (generic function)

Slot: inc
Initargs

:inc

Readers

inc (generic function)

Writers

(setf inc) (generic function)

Slot: bytes
Initform

32

Direct Default Initargs
InitargValue
:state9600629759793949339
:inc15726070495360670683
Class: rc4 ()

The RC4 cryptographic random number generator.

See https://en.wikipedia.org/wiki/RC4

Package

random-state

Source

rc4.lisp (file)

Direct superclasses

generator (class)

Direct methods
Direct slots
Slot: index1
Initform

0

Readers

index1 (generic function)

Writers

(setf index1) (generic function)

Slot: index2
Initform

0

Readers

index2 (generic function)

Writers

(setf index2) (generic function)

Slot: state
Initform

(make-array 256 :element-type (quote (unsigned-byte 8)))

Readers

state (generic function)

Slot: bytes
Initform

8

Class: tt800 ()

The predecessor to the Mersenne Twister algorithm.

See http://random.mat.sbg.ac.at/publics/ftp/pub/data/tt800.c

Package

random-state

Source

tt800.lisp (file)

Direct superclasses

generator (class)

Direct methods
Direct slots
Slot: magic
Initform

(random-state::barr 32 0 2394935336)

Readers

magic (generic function)

Slot: shiftops
Initform

#((7 727393536) (15 3683319808) (-16 4294967295))

Readers

shiftops (generic function)

Slot: n
Initform

25

Readers

n (generic function)

Slot: m
Initform

7

Readers

m (generic function)

Slot: index
Initform

0

Readers

index (generic function)

Writers

(setf index) (generic function)

Slot: matrix
Readers

matrix (generic function)

Writers

set-matrix (generic function)

Slot: bytes
Initform

32


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *generators*
Package

random-state

Source

generator.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Macros

Macro: %inner-mersenne-twister BYTES
Package

random-state

Source

mersenne-twister.lisp (file)

Macro: define-generator-generic NAME (GENERATOR &rest ARGS) &rest OPTIONS
Package

random-state

Source

generator.lisp (file)

Macro: incfmod PLACE MOD &optional DELTA
Package

random-state

Source

toolkit.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.3 Functions

Function: 32bit-seed-array SIZE SEED
Package

random-state

Source

toolkit.lisp (file)

Function: 64bit-seed-array SIZE SEED
Package

random-state

Source

toolkit.lisp (file)

Function: barr BYTES &rest CONTENTS
Package

random-state

Source

toolkit.lisp (file)

Function: byte-array-to-int ARRAY
Package

random-state

Source

toolkit.lisp (file)

Function: truncate-bits X BITS
Package

random-state

Source

toolkit.lisp (file)

Function: truncate32 X
Package

random-state

Source

toolkit.lisp (file)

Function: truncate64 X
Package

random-state

Source

toolkit.lisp (file)


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.4 Generic functions

Generic Function: inc OBJECT
Generic Function: (setf inc) NEW-VALUE OBJECT
Package

random-state

Methods
Method: inc (PCG pcg)

automatically generated reader method

Source

pcg.lisp (file)

Method: (setf inc) NEW-VALUE (PCG pcg)

automatically generated writer method

Source

pcg.lisp (file)

Generic Function: increment OBJECT
Package

random-state

Methods
Method: increment (LINEAR-CONGRUENCE linear-congruence)

automatically generated reader method

Source

linear-congruence.lisp (file)

Generic Function: index OBJECT
Generic Function: (setf index) NEW-VALUE OBJECT
Package

random-state

Methods
Method: index (TT800 tt800)

automatically generated reader method

Source

tt800.lisp (file)

Method: (setf index) NEW-VALUE (TT800 tt800)

automatically generated writer method

Source

tt800.lisp (file)

Method: index (MERSENNE-TWISTER mersenne-twister)

automatically generated reader method

Source

mersenne-twister.lisp (file)

Method: (setf index) NEW-VALUE (MERSENNE-TWISTER mersenne-twister)

automatically generated writer method

Source

mersenne-twister.lisp (file)

Generic Function: index1 OBJECT
Generic Function: (setf index1) NEW-VALUE OBJECT
Package

random-state

Methods
Method: index1 (RC4 rc4)

automatically generated reader method

Source

rc4.lisp (file)

Method: (setf index1) NEW-VALUE (RC4 rc4)

automatically generated writer method

Source

rc4.lisp (file)

Generic Function: index2 OBJECT
Generic Function: (setf index2) NEW-VALUE OBJECT
Package

random-state

Methods
Method: index2 (RC4 rc4)

automatically generated reader method

Source

rc4.lisp (file)

Method: (setf index2) NEW-VALUE (RC4 rc4)

automatically generated writer method

Source

rc4.lisp (file)

Generic Function: lower OBJECT
Package

random-state

Methods
Method: lower (MERSENNE-TWISTER mersenne-twister)

automatically generated reader method

Source

mersenne-twister.lisp (file)

Generic Function: m OBJECT
Package

random-state

Methods
Method: m (TT800 tt800)

automatically generated reader method

Source

tt800.lisp (file)

Method: m (MERSENNE-TWISTER mersenne-twister)

automatically generated reader method

Source

mersenne-twister.lisp (file)

Generic Function: magic OBJECT
Package

random-state

Methods
Method: magic (TT800 tt800)

automatically generated reader method

Source

tt800.lisp (file)

Method: magic (MERSENNE-TWISTER mersenne-twister)

automatically generated reader method

Source

mersenne-twister.lisp (file)

Generic Function: matrix OBJECT
Package

random-state

Methods
Method: matrix (TT800 tt800)

automatically generated reader method

Source

tt800.lisp (file)

Method: matrix (MERSENNE-TWISTER mersenne-twister)

automatically generated reader method

Source

mersenne-twister.lisp (file)

Generic Function: multiplier OBJECT
Package

random-state

Methods
Method: multiplier (LINEAR-CONGRUENCE linear-congruence)

automatically generated reader method

Source

linear-congruence.lisp (file)

Generic Function: n OBJECT
Package

random-state

Methods
Method: n (TT800 tt800)

automatically generated reader method

Source

tt800.lisp (file)

Method: n (MERSENNE-TWISTER mersenne-twister)

automatically generated reader method

Source

mersenne-twister.lisp (file)

Generic Function: set-bytes NEW-VALUE OBJECT
Package

random-state

Methods
Method: set-bytes NEW-VALUE (MIDDLE-SQUARE middle-square)

automatically generated writer method

Source

middle-square.lisp (file)

Method: set-bytes NEW-VALUE (LINEAR-CONGRUENCE linear-congruence)

automatically generated writer method

Source

linear-congruence.lisp (file)

Generic Function: set-increment NEW-VALUE OBJECT
Package

random-state

Methods
Method: set-increment NEW-VALUE (LINEAR-CONGRUENCE linear-congruence)

automatically generated writer method

Source

linear-congruence.lisp (file)

Generic Function: set-matrix NEW-VALUE OBJECT
Package

random-state

Methods
Method: set-matrix NEW-VALUE (TT800 tt800)

automatically generated writer method

Source

tt800.lisp (file)

Method: set-matrix NEW-VALUE (MERSENNE-TWISTER mersenne-twister)

automatically generated writer method

Source

mersenne-twister.lisp (file)

Generic Function: set-multiplier NEW-VALUE OBJECT
Package

random-state

Methods
Method: set-multiplier NEW-VALUE (LINEAR-CONGRUENCE linear-congruence)

automatically generated writer method

Source

linear-congruence.lisp (file)

Generic Function: set-seed NEW-VALUE OBJECT
Package

random-state

Methods
Method: set-seed NEW-VALUE (GENERATOR generator)

automatically generated writer method

Source

generator.lisp (file)

Generic Function: shiftops OBJECT
Package

random-state

Methods
Method: shiftops (TT800 tt800)

automatically generated reader method

Source

tt800.lisp (file)

Method: shiftops (MERSENNE-TWISTER mersenne-twister)

automatically generated reader method

Source

mersenne-twister.lisp (file)

Generic Function: state OBJECT
Generic Function: (setf state) NEW-VALUE OBJECT
Package

random-state

Methods
Method: state (RC4 rc4)

automatically generated reader method

Source

rc4.lisp (file)

Method: state (PCG pcg)

automatically generated reader method

Source

pcg.lisp (file)

Method: (setf state) NEW-VALUE (PCG pcg)

automatically generated writer method

Source

pcg.lisp (file)

Method: state (MIDDLE-SQUARE middle-square)

automatically generated reader method

Source

middle-square.lisp (file)

Method: (setf state) NEW-VALUE (MIDDLE-SQUARE middle-square)

automatically generated writer method

Source

middle-square.lisp (file)

Method: state (LINEAR-CONGRUENCE linear-congruence)

automatically generated reader method

Source

linear-congruence.lisp (file)

Method: (setf state) NEW-VALUE (LINEAR-CONGRUENCE linear-congruence)

automatically generated writer method

Source

linear-congruence.lisp (file)

Generic Function: upper OBJECT
Package

random-state

Methods
Method: upper (MERSENNE-TWISTER mersenne-twister)

automatically generated reader method

Source

mersenne-twister.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.5 Classes

Class: mersenne-twister ()
Package

random-state

Source

mersenne-twister.lisp (file)

Direct superclasses

generator (class)

Direct subclasses
Direct methods
Direct slots
Slot: n
Initargs

:n

Readers

n (generic function)

Slot: m
Initargs

:m

Readers

m (generic function)

Slot: upper
Initargs

:upper

Readers

upper (generic function)

Slot: lower
Initargs

:lower

Readers

lower (generic function)

Slot: matrix
Initargs

:matrix

Readers

matrix (generic function)

Writers

set-matrix (generic function)

Slot: index
Initargs

:index

Readers

index (generic function)

Writers

(setf index) (generic function)

Slot: magic
Initargs

:magic

Readers

magic (generic function)

Slot: shiftops
Initargs

:shiftops

Readers

shiftops (generic function)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   R  
Index Entry  Section

F
File, Lisp, random-state.asd: The random-state<dot>asd file
File, Lisp, random-state/documentation.lisp: The random-state/documentation<dot>lisp file
File, Lisp, random-state/generator.lisp: The random-state/generator<dot>lisp file
File, Lisp, random-state/linear-congruence.lisp: The random-state/linear-congruence<dot>lisp file
File, Lisp, random-state/mersenne-twister.lisp: The random-state/mersenne-twister<dot>lisp file
File, Lisp, random-state/middle-square.lisp: The random-state/middle-square<dot>lisp file
File, Lisp, random-state/package.lisp: The random-state/package<dot>lisp file
File, Lisp, random-state/pcg.lisp: The random-state/pcg<dot>lisp file
File, Lisp, random-state/rc4.lisp: The random-state/rc4<dot>lisp file
File, Lisp, random-state/toolkit.lisp: The random-state/toolkit<dot>lisp file
File, Lisp, random-state/tt800.lisp: The random-state/tt800<dot>lisp file

L
Lisp File, random-state.asd: The random-state<dot>asd file
Lisp File, random-state/documentation.lisp: The random-state/documentation<dot>lisp file
Lisp File, random-state/generator.lisp: The random-state/generator<dot>lisp file
Lisp File, random-state/linear-congruence.lisp: The random-state/linear-congruence<dot>lisp file
Lisp File, random-state/mersenne-twister.lisp: The random-state/mersenne-twister<dot>lisp file
Lisp File, random-state/middle-square.lisp: The random-state/middle-square<dot>lisp file
Lisp File, random-state/package.lisp: The random-state/package<dot>lisp file
Lisp File, random-state/pcg.lisp: The random-state/pcg<dot>lisp file
Lisp File, random-state/rc4.lisp: The random-state/rc4<dot>lisp file
Lisp File, random-state/toolkit.lisp: The random-state/toolkit<dot>lisp file
Lisp File, random-state/tt800.lisp: The random-state/tt800<dot>lisp file

R
random-state.asd: The random-state<dot>asd file
random-state/documentation.lisp: The random-state/documentation<dot>lisp file
random-state/generator.lisp: The random-state/generator<dot>lisp file
random-state/linear-congruence.lisp: The random-state/linear-congruence<dot>lisp file
random-state/mersenne-twister.lisp: The random-state/mersenne-twister<dot>lisp file
random-state/middle-square.lisp: The random-state/middle-square<dot>lisp file
random-state/package.lisp: The random-state/package<dot>lisp file
random-state/pcg.lisp: The random-state/pcg<dot>lisp file
random-state/rc4.lisp: The random-state/rc4<dot>lisp file
random-state/toolkit.lisp: The random-state/toolkit<dot>lisp file
random-state/tt800.lisp: The random-state/tt800<dot>lisp file

Jump to:   F   L   R  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   %   (   3   6  
B   D   F   G   H   I   L   M   N   R   S   T   U  
Index Entry  Section

%
%inner-mersenne-twister: Internal macros

(
(setf inc): Internal generic functions
(setf inc): Internal generic functions
(setf index): Internal generic functions
(setf index): Internal generic functions
(setf index): Internal generic functions
(setf index1): Internal generic functions
(setf index1): Internal generic functions
(setf index2): Internal generic functions
(setf index2): Internal generic functions
(setf state): Internal generic functions
(setf state): Internal generic functions
(setf state): Internal generic functions
(setf state): Internal generic functions

3
32bit-seed-array: Internal functions

6
64bit-seed-array: Internal functions

B
barr: Internal functions
byte-array-to-int: Internal functions
bytes: Exported generic functions
bytes: Exported generic functions

D
define-generator-generic: Internal macros

F
Function, 32bit-seed-array: Internal functions
Function, 64bit-seed-array: Internal functions
Function, barr: Internal functions
Function, byte-array-to-int: Internal functions
Function, generator-class: Exported functions
Function, global-generator: Exported functions
Function, hopefully-sufficiently-random-seed: Exported functions
Function, make-generator: Exported functions
Function, truncate-bits: Internal functions
Function, truncate32: Internal functions
Function, truncate64: Internal functions

G
generator-class: Exported functions
Generic Function, (setf inc): Internal generic functions
Generic Function, (setf index): Internal generic functions
Generic Function, (setf index1): Internal generic functions
Generic Function, (setf index2): Internal generic functions
Generic Function, (setf state): Internal generic functions
Generic Function, bytes: Exported generic functions
Generic Function, inc: Internal generic functions
Generic Function, increment: Internal generic functions
Generic Function, index: Internal generic functions
Generic Function, index1: Internal generic functions
Generic Function, index2: Internal generic functions
Generic Function, lower: Internal generic functions
Generic Function, m: Internal generic functions
Generic Function, magic: Internal generic functions
Generic Function, matrix: Internal generic functions
Generic Function, multiplier: Internal generic functions
Generic Function, n: Internal generic functions
Generic Function, random-byte: Exported generic functions
Generic Function, random-bytes: Exported generic functions
Generic Function, random-float: Exported generic functions
Generic Function, random-int: Exported generic functions
Generic Function, random-unit: Exported generic functions
Generic Function, reseed: Exported generic functions
Generic Function, seed: Exported generic functions
Generic Function, set-bytes: Internal generic functions
Generic Function, set-increment: Internal generic functions
Generic Function, set-matrix: Internal generic functions
Generic Function, set-multiplier: Internal generic functions
Generic Function, set-seed: Internal generic functions
Generic Function, shiftops: Internal generic functions
Generic Function, state: Internal generic functions
Generic Function, upper: Internal generic functions
global-generator: Exported functions

H
hopefully-sufficiently-random-seed: Exported functions

I
inc: Internal generic functions
inc: Internal generic functions
incfmod: Internal macros
increment: Internal generic functions
increment: Internal generic functions
index: Internal generic functions
index: Internal generic functions
index: Internal generic functions
index1: Internal generic functions
index1: Internal generic functions
index2: Internal generic functions
index2: Internal generic functions

L
lower: Internal generic functions
lower: Internal generic functions

M
m: Internal generic functions
m: Internal generic functions
m: Internal generic functions
Macro, %inner-mersenne-twister: Internal macros
Macro, define-generator-generic: Internal macros
Macro, incfmod: Internal macros
magic: Internal generic functions
magic: Internal generic functions
magic: Internal generic functions
make-generator: Exported functions
matrix: Internal generic functions
matrix: Internal generic functions
matrix: Internal generic functions
Method, (setf inc): Internal generic functions
Method, (setf index): Internal generic functions
Method, (setf index): Internal generic functions
Method, (setf index1): Internal generic functions
Method, (setf index2): Internal generic functions
Method, (setf state): Internal generic functions
Method, (setf state): Internal generic functions
Method, (setf state): Internal generic functions
Method, bytes: Exported generic functions
Method, inc: Internal generic functions
Method, increment: Internal generic functions
Method, index: Internal generic functions
Method, index: Internal generic functions
Method, index1: Internal generic functions
Method, index2: Internal generic functions
Method, lower: Internal generic functions
Method, m: Internal generic functions
Method, m: Internal generic functions
Method, magic: Internal generic functions
Method, magic: Internal generic functions
Method, matrix: Internal generic functions
Method, matrix: Internal generic functions
Method, multiplier: Internal generic functions
Method, n: Internal generic functions
Method, n: Internal generic functions
Method, random-byte: Exported generic functions
Method, random-byte: Exported generic functions
Method, random-byte: Exported generic functions
Method, random-byte: Exported generic functions
Method, random-byte: Exported generic functions
Method, random-byte: Exported generic functions
Method, random-byte: Exported generic functions
Method, random-byte: Exported generic functions
Method, random-bytes: Exported generic functions
Method, random-bytes: Exported generic functions
Method, random-float: Exported generic functions
Method, random-float: Exported generic functions
Method, random-float: Exported generic functions
Method, random-int: Exported generic functions
Method, random-int: Exported generic functions
Method, random-int: Exported generic functions
Method, random-unit: Exported generic functions
Method, random-unit: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, reseed: Exported generic functions
Method, seed: Exported generic functions
Method, set-bytes: Internal generic functions
Method, set-bytes: Internal generic functions
Method, set-increment: Internal generic functions
Method, set-matrix: Internal generic functions
Method, set-matrix: Internal generic functions
Method, set-multiplier: Internal generic functions
Method, set-seed: Internal generic functions
Method, shiftops: Internal generic functions
Method, shiftops: Internal generic functions
Method, state: Internal generic functions
Method, state: Internal generic functions
Method, state: Internal generic functions
Method, state: Internal generic functions
Method, upper: Internal generic functions
multiplier: Internal generic functions
multiplier: Internal generic functions

N
n: Internal generic functions
n: Internal generic functions
n: Internal generic functions

R
random-byte: Exported generic functions
random-byte: Exported generic functions
random-byte: Exported generic functions
random-byte: Exported generic functions
random-byte: Exported generic functions
random-byte: Exported generic functions
random-byte: Exported generic functions
random-byte: Exported generic functions
random-byte: Exported generic functions
random-bytes: Exported generic functions
random-bytes: Exported generic functions
random-bytes: Exported generic functions
random-float: Exported generic functions
random-float: Exported generic functions
random-float: Exported generic functions
random-float: Exported generic functions
random-int: Exported generic functions
random-int: Exported generic functions
random-int: Exported generic functions
random-int: Exported generic functions
random-unit: Exported generic functions
random-unit: Exported generic functions
random-unit: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions
reseed: Exported generic functions

S
seed: Exported generic functions
seed: Exported generic functions
set-bytes: Internal generic functions
set-bytes: Internal generic functions
set-bytes: Internal generic functions
set-increment: Internal generic functions
set-increment: Internal generic functions
set-matrix: Internal generic functions
set-matrix: Internal generic functions
set-matrix: Internal generic functions
set-multiplier: Internal generic functions
set-multiplier: Internal generic functions
set-seed: Internal generic functions
set-seed: Internal generic functions
shiftops: Internal generic functions
shiftops: Internal generic functions
shiftops: Internal generic functions
state: Internal generic functions
state: Internal generic functions
state: Internal generic functions
state: Internal generic functions
state: Internal generic functions

T
truncate-bits: Internal functions
truncate32: Internal functions
truncate64: Internal functions

U
upper: Internal generic functions
upper: Internal generic functions

Jump to:   %   (   3   6  
B   D   F   G   H   I   L   M   N   R   S   T   U  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
B   I   L   M   N   S   U  
Index Entry  Section

*
*generators*: Internal special variables

B
bytes: Exported classes
bytes: Exported classes
bytes: Exported classes
bytes: Exported classes
bytes: Exported classes
bytes: Exported classes
bytes: Exported classes
bytes: Exported classes

I
inc: Exported classes
increment: Exported classes
index: Exported classes
index: Internal classes
index1: Exported classes
index2: Exported classes

L
lower: Internal classes

M
m: Exported classes
m: Internal classes
magic: Exported classes
magic: Internal classes
matrix: Exported classes
matrix: Internal classes
multiplier: Exported classes

N
n: Exported classes
n: Internal classes

S
seed: Exported classes
shiftops: Exported classes
shiftops: Internal classes
Slot, bytes: Exported classes
Slot, bytes: Exported classes
Slot, bytes: Exported classes
Slot, bytes: Exported classes
Slot, bytes: Exported classes
Slot, bytes: Exported classes
Slot, bytes: Exported classes
Slot, bytes: Exported classes
Slot, inc: Exported classes
Slot, increment: Exported classes
Slot, index: Exported classes
Slot, index: Internal classes
Slot, index1: Exported classes
Slot, index2: Exported classes
Slot, lower: Internal classes
Slot, m: Exported classes
Slot, m: Internal classes
Slot, magic: Exported classes
Slot, magic: Internal classes
Slot, matrix: Exported classes
Slot, matrix: Internal classes
Slot, multiplier: Exported classes
Slot, n: Exported classes
Slot, n: Internal classes
Slot, seed: Exported classes
Slot, shiftops: Exported classes
Slot, shiftops: Internal classes
Slot, state: Exported classes
Slot, state: Exported classes
Slot, state: Exported classes
Slot, state: Exported classes
Slot, upper: Internal classes
Special Variable, *generators*: Internal special variables
state: Exported classes
state: Exported classes
state: Exported classes
state: Exported classes

U
upper: Internal classes

Jump to:   *  
B   I   L   M   N   S   U  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   G   L   M   P   R   S   T  
Index Entry  Section

C
Class, generator: Exported classes
Class, linear-congruence: Exported classes
Class, mersenne-twister: Internal classes
Class, mersenne-twister-32: Exported classes
Class, mersenne-twister-64: Exported classes
Class, middle-square: Exported classes
Class, pcg: Exported classes
Class, rc4: Exported classes
Class, tt800: Exported classes

G
generator: Exported classes

L
linear-congruence: Exported classes

M
mersenne-twister: Internal classes
mersenne-twister-32: Exported classes
mersenne-twister-64: Exported classes
middle-square: Exported classes

P
Package, random-state: The random-state package
pcg: Exported classes

R
random-state: The random-state system
random-state: The random-state package
rc4: Exported classes

S
System, random-state: The random-state system

T
tt800: Exported classes

Jump to:   C   G   L   M   P   R   S   T