PCG seeded generator based on advanced maths

Hierarchy

Constructors

  • Parameters

    • requiresSynchronization: boolean
    • Optional initialState: number | Uint16Array

    Returns PCGSeededGenerator

Properties

requiresSynchronization: boolean
state: Uint16Array

Methods

  • Parameters

    • Optional requiresSynchronization: boolean
    • Optional initialState: number | Uint16Array

    Returns any

  • Returns Uint16Array

  • Returns Uint16Array

  • Returns number

  • Gets the next state and returns it as a new object

    Parameters

    • state: Uint16Array

    Returns Uint16Array

  • Parameters

    • state: Uint16Array

    Returns number

  • Returns Uint16Array

  • Returns Uint16Array

  • Allow pushing number seeds

    Parameters

    • Optional newSeed: number | Uint16Array

    Returns void

  • Allow setting seed to number

    Parameters

    • newSeed: number | Uint16Array

    Returns void

  • Parameters

    • maxHistory: number = 100

    Returns void

Generated using TypeDoc