Luau has a built in random function called math.random(). To generate numbers in between 0-1, just pass in numbers that are multiplied by some power of 10 and then divide the result by said power of 10.
local randomNumber = math.random(0,1000)/1000
Would you mind elaborating on what you mean by “with chance”?
Like say if I put 10 percent there is a chance of getting a number between 0.5 and actual Number 1 and the rest is just common numbers that have low numbers
and If I were to put 50 or 80 percent there’s a high chance of getting a number 1 but I don’t know how to do it since I’m not really much of a mathematician