title: Random enum as an argument
body: <p>After creating an enum, I want to asign a random value and send it as an argument to a function, but I have trouble with it.</p>
  
  <pre><code>public enum TGate
  {
    A, B, C, D
  }
  
  public class Parking
  {
    TGate gate;
    gate=TGate.C;
  
    public Parking(TGate gate) 
    {
      switch gate.....
    }
  }
  </code></pre>
  
  <p>I hope someone can help me.
  Thanks</p>