#can anyone help me make a random number generator
11 messages · Page 1 of 1 (latest)
math.random(MIN NUMBER AND MAX NUMBER)
NO DECIMALS!!
for example
math.random(1, 2)
would give 1 or 2
math.random(1, 50)
would give a random number between 1 and 50
YOU GET THE POINT
IF YOU WANT DECMIALS
math.random(1, 10)/10
outputs: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1
math.random(1,2)
Is it fixed ? Can you close the thread / mark it as solved please
