Flash CS3 How do I include negative numbers and exclude zero in Math.random?
ySpeed = (Math.random() * 6)+ 1;
I need to make an automated game of pong for school, however, I can't seem to find a way to include negative numbers in the Math.Random as well as excluding numbers.
The variable, ySpeed, needs to range from 6 to -6 and exclude 0.
Thank you in advance for anyone that helps.