Generates a random integer between 0 (inclusive) and the specified maximum value (exclusive).
The upper bound (exclusive) for the random integer.
A random integer between 0 (inclusive) and max (exclusive).
Generates a random integer between the specified minimum (inclusive) and maximum (exclusive) values.
The lower bound (inclusive) for the random integer.
The upper bound (inclusive) for the random integer.
A random integer between min (inclusive) and max (inclusive).
Interface representing a random number generator. On server, before applying the action, the random number generator is creating a new seed. On client, the random number generator is seeded with the same seed as the server. This way, the client and server will generate the same random numbers for a given action.