setRandomSeed.lua 450 B

1234567891011121314151617
  1. return {
  2. tag = 'random',
  3. summary = 'Set the random seed.',
  4. description = [[
  5. Seed the random generator with a new seed. Each seed will cause `lovr.math.random` and
  6. `lovr.math.randomNormal` to produce a unique sequence of random numbers. This is done once
  7. automatically at startup by `lovr.run`.
  8. ]],
  9. arguments = {
  10. {
  11. name = 'seed',
  12. type = 'number',
  13. description = 'The new seed.'
  14. }
  15. },
  16. returns = {}
  17. }