Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Math

Hierarchy

  • Math

Index

Methods

Methods

randomInt

  • randomInt(max: number): number
  • Generates a random integer in the range (0, max-1).

    static
    method

    Math.randomInt

    Parameters

    • max: number

      The upper boundary (excluded)

    Returns number

    A random integer

Generated using TypeDoc