Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace random

Index

Functions

Functions

set

  • set(generator: (ceiling: number) => number): (max: number) => number
  • Sets the method used to generate random numbers

    Parameters

    • generator: (ceiling: number) => number

      A function that takes a ceiling and returns a random number between 0 and ceiling - 1

        • (ceiling: number): number
        • Parameters

          • ceiling: number

          Returns number

    Returns (max: number) => number

      • (max: number): number
      • Parameters

        • max: number

        Returns number

Generated using TypeDoc