Skip to content

@ralphschuler.random.strategies.XORShift.strategy.XORShift

github-actions edited this page Nov 26, 2023 · 1 revision

Class: XORShift

@ralphschuler/random.strategies/XORShift.strategy.XORShift

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new XORShift(seed): XORShift

Parameters

Name Type
seed Seed

Returns

XORShift

Overrides

PseudoRandomNumberGenerator.constructor

Defined in

packages/random/src/strategies/XORShift.strategy.ts:8

Properties

seed

Protected seed: Seed

Inherited from

PseudoRandomNumberGenerator.seed

Defined in

packages/random/src/PseudoRandomNumberGenerator.ts:4


state

Private state: number

Defined in

packages/random/src/strategies/XORShift.strategy.ts:6

Methods

nextFloat

nextFloat(): number

Returns

number

Overrides

PseudoRandomNumberGenerator.nextFloat

Defined in

packages/random/src/strategies/XORShift.strategy.ts:23


nextInt

nextInt(min, max): number

Parameters

Name Type
min number
max number

Returns

number

Overrides

PseudoRandomNumberGenerator.nextInt

Defined in

packages/random/src/strategies/XORShift.strategy.ts:47

Typescript Libraries

Modules

Namespaces

Clone this wiki locally