Class: BitGenerator

(abstract) bit-generators.BitGenerator()

Base class implementing the shared helpers on top of nextUint32.

Constructor

(abstract) new BitGenerator()

Source:

Methods

clone() → {BitGenerator}

Independent copy positioned at the same point of the stream.

Source:
Returns:
Type
BitGenerator

nextUint53() → {number}

Uniform unsigned integer in [0, 2^53).

Source:
Returns:
Type
number

random() → {number}

Uniform double in [0, 1) with 53 random bits.

Source:
Returns:
Type
number