RandomGenerator:getState
EditReturns the current state of the RandomGenerator. This can be used with RandomGenerator:setState
to reliably restore a previous state of the generator.
state = RandomGenerator:getState()
Arguments
None
Returns
Name | Type | Description |
state | string | The serialized state. |
Notes
The seed represents the starting state of the RandomGenerator, whereas the state represents the current state of the generator.