title: Can I call some method randomly in C# (Unity)?
body: <p>I wanna call some method randomly. Can I do it in C#?</p>
  
  <p>I tried to some trials like using array, but I failed.</p>
  
  <p>Here is what I've tried:</p>
  
  <pre><code>public void OnClick()
  {
  
     Example1 a = new Example1();
     Example2 b = new Example2();
  
     object[] RandomArray = { "a", "b" };
  
     Random rand = new Random();
     int number = rand.Next(2);
  }
  
  public class Example1 : Example_PlayingType2
  {
     public void Random1()
     {
  
     }
  }
  
  public class Example2 : Example_PlayingType2
  {
     public void Random2()
     {
  
     }
  }
  </code></pre>