I’m making a pet hatching game. I’m making a secret pet and I want him to be 1 in a million chance to get. I don’t know the chance to put in math.random though, like “math.random(1,500), math.random(1,1000)”
you’d put in 1 to 1 million like math.random(1,1000000)
Just something extra
local chance_1m = math.random(1,1e6)
if chance_1m == 1 then
-- make it do something here
end
1 Like