Maybe try dividing x at the end by a random variable.
x = math.random(0,20)
if x ~= 1 and x~= 0 then
x = x/math.random(0,x)
print(x)
end
That would surely return a random variable.
However, I used to think that math.random would return decimals aswell.
I'm pretty sure there is an easy way, after this I'ma just go look at the Wiki Page.
You can also try putting one of the 2 parameters for math.random() as a decimal and see where that goes.
Maybe try doing
x = math.random(0,20.0)
^^ That normally is the case with Java, so you can go ahead and try that for all you want.
Math.random is a very curious creature that I must hunt down!
But first.... AMNESIA TIME ;D
oh wow, how excited I feel coming back to this forum. |