I am trying to generate a random number. Code was written with AS2. Now I am trying to convert it to AS3
anim = Math.random(1)*10;//error at this line: ArgumentError: Error #1063: Argument count mismatch on Math$/random(). Expected 0, got 1.
animround = Math.round(anim);