The random Reference Manual

This is the random Reference Manual, version 0.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:32:40 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

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


2.1 random

Some simple random number generators.

Author

Robert Brown

License

New BSD license. See the copyright messages in individual files.

Version

0.2

Defsystem Dependency

com.google.base (system).

Dependency

com.google.base (system).

Source

random.asd.

Child Components

3 Files

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


3.1 Lisp


3.1.1 random/random.asd

Source

random.asd.

Parent Component

random (system).

ASDF Systems

random.


3.1.2 random/random-package.lisp

Source

random.asd.

Parent Component

random (system).

Packages

random.


3.1.3 random/random.lisp

Dependency

random-package.lisp (file).

Source

random.asd.

Parent Component

random (system).

Public Interface

4 Packages

Packages are listed by definition order.


4.1 random

Google random number generators.

Source

random-package.lisp.

Use List
  • com.google.base.
  • common-lisp.
Public Interface

5 Definitions

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


5.1 Public Interface


5.1.1 Ordinary functions

Function: one-in (random n)

Return true when (UNIFORM-UINT32 RANDOM N) is zero.

Package

random.

Source

random.lisp.

Function: skewed-uint32 (random maximum-log)

Picks a base uniformly from the range [0, MAXIMUM-LOG] and then returns base random bits. The effect is the same as picking a number in the range [0, (2^MAXIMUM-LOG) - 1] with a bias toward smaller numbers.

Package

random.

Source

random.lisp.

Function: uniform-uint32 (random n)

Returns a pseudo-random non-negative 32-bit integer modulo the non-negative integer N. When N is zero, zero is returned.

Package

random.

Source

random.lisp.


5.1.2 Generic functions

Generic Function: next-uint16 (random)

Returns a non-negative pseudo-random 16-bit integer.

Package

random.

Source

random.lisp.

Generic Function: next-uint32 (random)

Returns a non-negative pseudo-random 32-bit integer.

Package

random.

Source

random.lisp.

Generic Function: next-uint64 (random)

Returns a non-negative pseudo-random 64-bit integer.

Package

random.

Source

random.lisp.

Generic Function: next-uint8 (random)

Returns a non-negative pseudo-random 8-bit integer.

Package

random.

Source

random.lisp.

Generic Function: reset (random)

Resets RANDOM to a default state.

Package

random.

Source

random.lisp.


Appendix A Indexes


A.1 Concepts


A.3 Variables