title: No overload for method 'zwierze' takes 0 arguments c#
body: <p>I haven't any errors, but the program always generates 0 for AnimalAge. It should generate numbers from 1-20. This is a simple game where a player should find Age of Animal. Corrected, still get 0.</p>
  
  <pre><code> public class losowaniez
  {
      public int AnimalAge;
      public static Random AnimalAge1 = new Random();
      public int Age2
      {
          get
          {                
              return AnimalAge1.Next(20);
          }            
      }                
  }
  
      public class Animal 
      {
          public void Fish()
          {
              Console.WriteLine("Zwierze moze miec maksymalnie 10 lat, zgadnij ile ma lat");
              int x = Convert.ToInt32(Console.ReadLine());
          }
          public int zwierze(losowaniez c)
          {                
              int AnimalAge = c.Age2;
  
              Console.WriteLine("Zwierze moze miec maksymalnie 20 lat zgadnij ile ma lat");
              int x = Convert.ToInt32(Console.ReadLine());
              if (x == AnimalAge)
              {
                  Console.WriteLine("Wygrales gre");
                  Console.ReadKey();
              }
              else if (x &gt; AnimalAge)
              {
                  Console.WriteLine("Celuj nizej!");
                  zwierze();
              }
              else
              {
                  Console.WriteLine("Celuj wyzej!");
                  zwierze();
              }
          }
               }
  </code></pre>