title: .NET Random RGB Color
body: <p>I wrote this C# code snippet here. The idea is to generate a random .NET Color in RGB, while keeping alpha at 255 (i.e. full)</p>
  
  <p>My question is does this function have the potential to hit every colour in RGB space? I thought I was but now I'm second guessing myself. Alternatively is there a better way to do this?</p>
  
  <p>Thanks.</p>
  
  <pre><code>const int COLORSPACE = 0xFF * 0xFF * 0xFF;
  const int ALPHA = 0xFF &lt;&lt; 24;    
  
  Random _rand = new Random();
  
  Color RandomColor
  {
      get
      {
          return Color.FromArgb(_rand.Next(COLORSPACE) + ALPHA);
      }
  }
  </code></pre>