Ejemplo n.º 1
0
 public static string GetSurname()
 {
     if (Sukunimi.Count > 0)
     {
         int    x   = random.Next(Sukunimi.Count);
         string ret = Sukunimi[x];
         Sukunimi.RemoveAt(x);
         return(ret);
     }
     else
     {
         throw new Exception("Out of names to deal from.");
     }
 }