example wait(x-y) Something that would act like that
math.random()
will give you a random number, evenly distributed between 0 and 1.
Thus 10 * math.random()
is evenly distributed between 0 and 10.
15 + 10 * math.random()
is evenly distributed between 15 and 15+10=25.
In general x + (y - x) * math.random()
is evenly distributed between x
and y
.