RandomGenerator
Available since LÖVE 0.9.0 |
This type is not supported in earlier versions. |
A random number generation object which has its own random state.
Constructors
love.math.newRandomGenerator | Creates a new RandomGenerator object. |
![]() |
Functions
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. | ||
RandomGenerator:getSeed | Gets the seed of the random number generator. |
![]() |
|
RandomGenerator:getState | Gets the current state of the random number generator. |
![]() |
|
RandomGenerator:setSeed | Sets the seed of the random number generator. |
![]() |
|
RandomGenerator:setState | Sets the current state of the random number generator. |
![]() |
Supertypes
See Also
Category: