Math.random on size

My issue is understanding how math.random works,
in my game it repeats code ten times with the line below

p.Size = Vector3.new(math.random(.6,3)/1,0.1,math.random(.6,3)/1)

Half of the time the output of sizes are a tiny number like 0.0000294 others being 2 or 1.2 like i wanted.
I have no screenshots its just a issue ive always ran into with math.random

You can’t put decimal numbers into math.random(), only whole Integers. Instead, you could use this:
p.Size = Vector3.new(math.random(6,30)/10, 0.1, math.random(6, 30)/10)

Never heard that, ill try it when i get back homes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.