Options
All
  • Public
  • Public/Protected
  • All
Menu

game RNG

Seed random number generator

This should be your only source of randomness

It is given to you though the Game methods

Note that to generate unpredictable randomness, the rng use the input as randomness

In other words, do not expect 2 consecutive call to be the same if inputs are different

This ensure more unpredictability while preserving determinism

Summary

Properties

Properties

nextIntInRange

nextIntInRange: function
param

start : start of the range (included)

param

end : end of the range (included)

Type declaration

    • (start: number, end: number): number
    • Parameters

      • start: number
      • end: number

      Returns number