Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a random number generator.

Hierarchy

Index

Properties

Methods

Properties

Optional id

id: ObjectID | undefined

The identifier of this object.

Methods

nextInt

  • nextInt(min?: number, max?: number): number
  • Returns the next random number, limited to a given range.

    Parameters

    • Optional min: number

      The minimum value (inclusive) Defaults to 0

    • Optional max: number

      The maximum value (exclusive) Defaults to 0x7fffffff

    Returns number

Generated using TypeDoc