Does anyone know how to make a random actionscript. For Example if you are playing a game where you need to guess a number that is random. Then there would need to be a line of code where the actionscript generates a random number.
Math.random() generates a number between 0 and 1. If you want a random number between 0 and 100, it would be Math.random()*100. Between -50 and 50 would be Math.random()*100 - 50. You get the idea.