I'm currently creating a game and I have to deal with very large numbers. I was trying to find a random number between these large numbers using math.random(). I found that it would return 0 if you have extremely large numbers in the arguments. Is there any way to fix this problem? Any help would be appreciated.
Code
local Random = math.random(1e22, 1e24) print(Random)
This would print 0 in the output.
The highest number you can get in Roblox is i'm pretty sure math.huge and its a pretty big number. Just do math.random(math.huge) it gives u a random number from 1, math.huge, which is a big, big number like I said.