setState.lua 557 B

12345678910111213141516171819
  1. return {
  2. summary = 'Set the state of the RandomGenerator.',
  3. description = [[
  4. Sets the state of the RandomGenerator, as previously obtained using `RandomGenerator:getState`.
  5. This can be used to reliably restore a previous state of the generator.
  6. ]],
  7. arguments = {
  8. {
  9. name = 'state',
  10. type = 'string',
  11. description = 'The serialized state.'
  12. }
  13. },
  14. returns = {},
  15. notes = [[
  16. The seed represents the starting state of the RandomGenerator, whereas the state represents the
  17. current state of the generator.
  18. ]]
  19. }