RandomGeneratorState

class RandomGeneratorState(*args)

Random generator state.

Data structure used to save the internal state of the generator.

Parameters:
buffersequence of int

The history buffer

indexint

The index into buffer

Methods

getBuffer()

Random generator state buffer accessor.

getClassName()

Accessor to the object's name.

getIndex()

Random generator state index accessor.

getName()

Accessor to the object's name.

hasName()

Test if the object is named.

setName(name)

Accessor to the object's name.

__init__(*args)
getBuffer()

Random generator state buffer accessor.

Returns:
buffersequence of int

The history buffer

getClassName()

Accessor to the object’s name.

Returns:
class_namestr

The object class name (object.__class__.__name__).

getIndex()

Random generator state index accessor.

Returns:
indexint

The index into buffer

getName()

Accessor to the object’s name.

Returns:
namestr

The name of the object.

hasName()

Test if the object is named.

Returns:
hasNamebool

True if the name is not empty.

setName(name)

Accessor to the object’s name.

Parameters:
namestr

The name of the object.

Examples using the class

Random generator parametrization

Random generator parametrization