Variable randomConst

random: Random = ...

Shared random number generator instance, seeded when the game starts. To ensure replay function correctly, make sure you only use this instance in a deterministic way.

Example

Use the global shared instance:

let value = bge.random.int(10, 20);

Generated using TypeDoc