You could just use ANGLE = Math.random*360; beware that this is in degrees, you probably need to convert it to radians to use in Math.cos and sin, just look in flash help for how to do that.