FANDOM


Random, introduced in December of 2017 [1] and released on January 3, 2018, [2] is an object that generates numbers more random than math.random does. It can be constructed via Random.new(). Optionally, a seed can be passed to it.

Methods

Pubmethod int NextInteger(int min, int max)

Returns a pseudorandom int between min and max.

Pubmethod double NextNumber(double min = 0, double max = 1)

Returns a pseudorandom double between min and max.

Pubmethod Random Clone()

Returns a new Random with the same state as this one.

References

  1. https://devforum.roblox.com/t/a-random-feature/64517/
  2. https://devforum.roblox.com/t/a-random-feature/64517/51


Community content is available under CC-BY-SA unless otherwise noted.