fork(1) download
  1. using System;
  2.  
  3. namespace NameGen
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. char[] gl = new char[] { 'e', 'u', 'i', 'o', 'a' };
  10. char[] sogl = new char[] { 'q', 'w', 'r', 't', 'y', 'p', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'z', 'x', 'c', 'v', 'b', 'n', 'm' };
  11. Random rand = new Random();
  12. int len = rand.Next(4, 8);
  13. bool ch = rand.Next(2) == 1;
  14. string s = "";
  15. for(int i = 0; i < len; i++)
  16. {
  17. if (ch) s += gl[rand.Next(0, 4)];
  18. else s += sogl[rand.Next(0, 20)];
  19. ch = !ch;
  20. }
  21. Console.WriteLine(s);
  22. Console.ReadLine();
  23. }
  24. }
  25. }
  26.  
Success #stdin #stdout 0s 29672KB
stdin
Standard input is empty
stdout
eceyoy