title: Particles Shooting Out at Random Angles Between Certain Angles
body: <p><b>H</b>ello all,</p>
  
  <p>I'm creating a game where some particles are created after a collision between two objects. The particles are then given a random x and y velocity and they shoot out in every direction. I've been trying to alter the way the particles shoot out to resemble <b>Figure 1</b>, where the particles shoot out at a randoom angle between 330 to 30 and 150 to 210 (I wrote the angles in degrees rather than radians for an ease in understanding). The red areas in <b>Figure 1</b> are where the particles shouldn't shoot out and the blue is where they should. I have not been able to achieve the desired effect however. I was wondering if anyone could assist with a link to helpful reading or an example in code. I have been searching google but cannot find a decent example.</p>
  
  <p><a href="https://i.stack.imgur.com/Kl5sb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kl5sb.png" alt="Particle spawn angles, blue being able to spawn, red being unable to spawn."></a>
  
  <b>Figure 1</b></p>
  
  <p><b>Notes:</b><br /></p>
  
  <ul>
  - The angles are written in degrees but will need to be changed to radians because Flash uses radians, a simple conversion (<code>Math.pi/180</code>) added to the code should suffice.<br />
  - <b>Figure 1</b> resembles the Cartesian Coordinate system but the y axis is inverted in Flash's coordinate system.<br />
  - I would post the code that I have tried but it is so far from what is desired that it would not help.
  </ul>