Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public class Program
  2. {
  3. public static void Main(string[] args)
  4. {
  5. Random rnd = new Random();
  6. string[] litery = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "R", "S", "T", "U", "W", "X", "Y", "Z" };
  7. int ileLiter = rnd.Next(10,20);
  8.  
  9. for (int i = 0; i <= ileLiter; i++)
  10. {
  11. int litera = rnd.Next(litery.Length);
  12. Console.WriteLine(" {0}", litery[litera]);
  13. }
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement