title: Choose a random Direction and Move
body: <p>I want to be able to choose a random angle (between 0 and 360 or 0 and 2pi) and then have a sprite move in that direction. So far I have tried this, but it has been pretty noneffective, as it always moves down, and the angle choosing isn't very pretty.</p>
  
  <pre><code>Random rand = new Random();
  
  //Chooses the Angle
  rotation = (float)rand.NextDouble()*MathHelper.TwoPi; 
  
  //Is supposed to get a normalized movement vector that moves in the direction of that angle.
  moveVector = Vector2.Normalize(new Vector2(-(float)Math.Tan(rotation), 1)); 
  </code></pre>