i wants like if the number like 1515623 so it's will print your luck is 15% and i wants it to work on any number.
here an example how i wants it to looks like..
total = 100 -- any number even with mil number = total repeat a = math.random(1,total) if a == 1 then -- your luck.. 52% , 10%.. else number = number - 1 end until a == 1