Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SeededGenerator

Hierarchy

  • SeededGenerator

Implements

Index

Constructors

constructor

  • Parameters

    • Optional seed: undefined | number

    Returns SeededGenerator

Methods

generateSeed

  • generateSeed(): void
  • Returns void

get

  • get(): number
  • Returns number

getHistory

  • Returns IRandomHistory[] | undefined

getSeed

  • getSeed(): number
  • Returns number

popSeed

  • popSeed(): number
  • Returns number

pushSeed

  • pushSeed(newSeed?: undefined | number): void
  • Parameters

    • Optional newSeed: undefined | number

    Returns void

setDebug

  • setDebug(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

setSeed

  • setSeed(newSeed: number): void
  • Parameters

    • newSeed: number

    Returns void

startHistory

  • startHistory(maxHistory?: number): void
  • Parameters

    • Default value maxHistory: number = 100

    Returns void

stopHistory

  • Parameters

    • Optional print: undefined | string

    Returns IRandomHistory[]

takeHistory

  • Returns IRandomHistory[] | undefined

tickSeed

  • tickSeed(s: number): number
  • Parameters

    • s: number

    Returns number

Generated using TypeDoc