Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NonRandomDevice

A "Random" device that produces numbers based on defined generator functions.

Hierarchy

Implements

Index

Constructors

Methods

Constructors

constructor

  • Parameters

    • real: function

      A function that produces the next "random" real when called.

        • (): number
        • Returns number

    • Optional int: function

      A function that produces the next "random" int when called. If it is not supplied, then the next random int

        • (): number
        • Returns number

    Returns NonRandomDevice

Methods

randomInt

  • randomInt(max: number, min?: number): number

randomReal

  • randomReal(): number

Generated using TypeDoc