Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Random

An implementation of the PRNG used by the RotMG game client.

Hierarchy

  • Random

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Random(seed: number): Random

Properties

Private seed

seed: number

Methods

Private generate

  • generate(): number

nextIntInRange

  • nextIntInRange(min: number, max: number): number
  • Gets the next integer in the given range.

    Parameters

    • min: number

      The minimum value.

    • max: number

      The maximum value.

    Returns number

Generated using TypeDoc