ActionScript 3 Random Value Generation Random angle, in degrees


Example

function randomAngle():Number {
    return (Math.random() * 360);
}

Example outputs:

  • 31.554428357630968
  • 230.4078639484942
  • 312.7964010089636