setSeed.lua 737 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Reinitialize the RandomGenerator with a new seed.',
  3. description = [[
  4. Seed the RandomGenerator with a new seed. Each seed will cause the RandomGenerator to produce a
  5. unique sequence of random numbers.
  6. ]],
  7. arguments = {
  8. seed = {
  9. type = 'number',
  10. description = 'The random seed.'
  11. },
  12. low = {
  13. type = 'number',
  14. description = 'The lower 32 bits of the seed.'
  15. },
  16. high = {
  17. type = 'number',
  18. description = 'The upper 32 bits of the seed.'
  19. }
  20. },
  21. returns = {},
  22. notes = [[
  23. For precise 64 bit seeds, you should specify the lower and upper 32 bits of the seed separately.
  24. Otherwise, seeds larger than 2^53 will start to lose precision.
  25. ]]
  26. }