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

- What is the use case of this?
- 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