Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Xorshift

Hierarchy

  • Xorshift

Index

Constructors

constructor

  • Parameters

    • seed: number

    Returns Xorshift

Properties

Private _state0L

_state0L: any

Private _state0U

_state0U: any

Private _state1L

_state1L: any

Private _state1U

_state1U: any

Methods

initState

  • initState(seed: number): void
  • Parameters

    • seed: number

    Returns void

nextInt

  • nextInt(min: number, sup: number): number
  • Parameters

    • min: number
    • sup: number

    Returns number

random

  • random(): number
  • Returns number

randomInt

  • randomInt(): number[]
  • Returns number[]

serialize

Static deserialize

Generated using TypeDoc