How do I math.random with number above the 32 bit integer limit?

How would I do math.random with numbers bigger than the 32 bit integer limit? (For example: math.random(2000000000, 3000000000))
I have looked around for a while and cant find a good answer.

1 Like
  1. What is the use case of this?
  2. Luau uses doubles, or floating point numbers, and the maximum number is way higher than 2^32 (or 2^31 for signed numbers).

Nevermind, I found the solution, random.new() can calculate numbers above the 32 bit integer limit