NetworkNameGenerator.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace WinUI
  7. {
  8. class NetworkNameGenerator
  9. {
  10. public static string GenerateName()
  11. {
  12. Random r = new Random(DateTime.Now.Millisecond);
  13. int firstIndex = r.Next(0, FIRST.Length);
  14. int secondIndex = r.Next(0, SECOND.Length);
  15. return FIRST[firstIndex] + "_" + SECOND[secondIndex];
  16. }
  17. private static string[] FIRST =
  18. {
  19. "admiring",
  20. "adoring",
  21. "agitated",
  22. "amazing",
  23. "angry",
  24. "awesome",
  25. "berserk",
  26. "big",
  27. "clever",
  28. "compassionate",
  29. "cranky",
  30. "crazy",
  31. "desperate",
  32. "determined",
  33. "distracted",
  34. "dreamy",
  35. "ecstatic",
  36. "elated",
  37. "elegant",
  38. "fervent",
  39. "focused",
  40. "furious",
  41. "gigantic",
  42. "gloomy",
  43. "goofy",
  44. "grave",
  45. "happy",
  46. "high",
  47. "hopeful",
  48. "hungry",
  49. "insane",
  50. "jolly",
  51. "jovial",
  52. "lonely",
  53. "loving",
  54. "modest",
  55. "nostalgic",
  56. "pedantic",
  57. "pensive",
  58. "prickly",
  59. "reverent",
  60. "romantic",
  61. "sad",
  62. "serene",
  63. "sharp",
  64. "silly",
  65. "sleepy",
  66. "stoic",
  67. "stupefied",
  68. "suspicious",
  69. "tender",
  70. "thirsty",
  71. "tiny",
  72. "trusting"
  73. };
  74. private static string[] SECOND =
  75. {
  76. // constructed telephone-like devices in 1854
  77. "meucci",
  78. // prototype make-or-break telephones in 1860
  79. "reis",
  80. // Alexander Graham Bell
  81. "bell",
  82. // designed telephone using water microphone in 1876
  83. "gray",
  84. // Tivadar Puskás invented the telephone switchboard exchange in 1876.
  85. "puskas",
  86. // Thomas Edison, invented the carbon microphone which produced a strong telephone signal.
  87. "edison",
  88. // 1950s, Paul Baran developed the concept Distributed Adaptive Message Block Switching
  89. "baran",
  90. // Donald Davies coined the phrase 'packet switching network'
  91. "davies",
  92. // Robert Licklider helped get ARPANET funded
  93. "licklider",
  94. // Robert Taylor, ARPANET pioneer
  95. "taylor",
  96. // Lawrence Roberts, ARPANET
  97. "roberts",
  98. // Vint Cerf, TCP
  99. "cerf",
  100. // Bob Kahn, TCP
  101. "kahn",
  102. // David P Reed, UDP
  103. "reed",
  104. // Community Memory was created by Efrem Lipkin, Mark Szpakowski, and Lee Felsenstein, acting as The Community Memory Project within the Resource One computer center at Project One in San Francisco.
  105. "lipkin",
  106. "szpakowski",
  107. "felsenstein",
  108. // The first public dial-up BBS was developed by Ward Christensen and Randy Suess.
  109. "christensen",
  110. "suess",
  111. // Joybubbles (May 25, 1949 – August 8, 2007), born Josef Carl Engressia, Jr. in Richmond, Virginia, USA, was an early phone phreak.
  112. "engressia",
  113. "joybubbles",
  114. // John Thomas Draper (born 1943), also known as Captain Crunch, Crunch or Crunchman (after Cap'n Crunch breakfast cereal mascot), is an American computer programmer and former phone phreak
  115. "draper",
  116. // Dennis C. Hayes, founder of Hayes Microcomputer Products
  117. // "The Modem of Dennis Hayes and Dale Heatherington."
  118. "hayes",
  119. "heatherington",
  120. // "Ethernet was developed at Xerox PARC between 1973 and 1974.[7][8] It was inspired by ALOHAnet, which Robert Metcalfe had studied as part of his PhD dissertation."
  121. "metcalfe",
  122. // William Bradford Shockley Jr. (February 13, 1910 – August 12, 1989) was an American physicist and inventor. Shockley was the manager of a research group that included John Bardeen and Walter Brattain. The three scientists invented the point contact transistor in 1947
  123. "shockley",
  124. "bardeen",
  125. "brattain",
  126. // "Randall Erck invented the modern modem as we know it today. There were devices similar to modems used by the military, but they were designed more for the purpose of sending encripted nuclear launch codes to various bases around the world."
  127. "erck",
  128. // Leonard Kleinrock, packet switching network pioneer
  129. "kleinrock",
  130. // Tim Berners-Lee, WWW
  131. "berners_lee",
  132. // Steve Wozniak, early phone phreak
  133. "wozniak",
  134. // James Fields Smathers of Kansas City invented what is considered the first practical power-operated typewriter in 1914.
  135. "smathers",
  136. // The teleprinter evolved through a series of inventions by a number of engineers, including Royal Earl House, David Edward Hughes, Emile Baudot, Donald Murray, Charles L. Krum, Edward Kleinschmidt and Frederick G. Creed.
  137. "house",
  138. "hughes",
  139. "baudot",
  140. "murray",
  141. "krum",
  142. "kleinschmidt",
  143. "creed",
  144. // Ron Rosenbaum, author of "Secrets of the Little Blue Box" which mainstreamed phone phreaking
  145. "rosenbaum",
  146. // Bram Cohen. Bram Cohen (born October 12, 1975) is an American computer programmer, best known as the author of the peer-to-peer (P2P) BitTorrent protocol,
  147. "cohen",
  148. // Jarkko Oikarinen (born 16 August 1967, in Kuusamo, Finland) is the inventor of the first Internet chat network, called Internet Relay Chat (IRC), where he is known as WiZ.
  149. "oikarinen",
  150. // "What you probably didn't know is that the author of Trumpet Winsock — Peter Tattam from Tasmania, Australia — didn't see much money for his efforts."
  151. "tattam",
  152. // Satoshi Nakamoto
  153. "nakamoto",
  154. // Philo Farnsworth, inventor of the first practical TV tube
  155. "farnsworth",
  156. // Scottish inventor John Logie Baird employed the Nipkow disk in his prototype video systems. On 25 March 1925, Baird gave the first public demonstration of televised silhouette images in motion, at Selfridge's Department Store in London.
  157. "baird",
  158. // Beginning in 1836, the American artist Samuel F. B. Morse, the American physicist Joseph Henry, and Alfred Vail developed an electrical telegraph system.
  159. "morse",
  160. "henry",
  161. "vail"
  162. };
  163. }
  164. }