Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.33 KB | None | 0 0
  1. public class MyProgram extends ConsoleProgram
  2. {
  3.  
  4. public void run()
  5. {
  6. words word = new words();
  7. Randomizer rand = new Randomizer();
  8.  
  9. System.out.println(word.wordBank(rand.nextInt(0, 500)));
  10.  
  11. }
  12. }
  13.  
  14. public class words
  15. {
  16.  
  17. public words()
  18. {
  19.  
  20. }
  21.  
  22. public String wordBank(int num)
  23. {
  24. String[] word = {
  25. "abecedarian",
  26. "abracadabra",
  27. "accoutrements",
  28. "adagio",
  29. "aficionado",
  30. "agita",
  31. "agog",
  32. "akimbo",
  33. "alfresco",
  34. "aloof",
  35. "ambrosial",
  36. "amok",
  37. "ampersand",
  38. "anemone",
  39. "anthropomorphic",
  40. "antimacassar",
  41. "aplomb",
  42. "apogee",
  43. "apoplectic",
  44. "appaloosa",
  45. "apparatus",
  46. "archipelago",
  47. "avuncular",
  48. "azure",
  49. "babushka",
  50. "bailiwick",
  51. "bafflegab",
  52. "balderdash",
  53. "ballistic",
  54. "bamboozle",
  55. "bandwagon",
  56. "barnstorming",
  57. "beanpole",
  58. "bedlam",
  59. "befuddled",
  60. "bellwether",
  61. "berserk",
  62. "bibliopole",
  63. "bigmouth",
  64. "bippy",
  65. "blabbermouth",
  66. "blatherskite",
  67. "blindside",
  68. "blob",
  69. "blockhead",
  70. "blowback",
  71. "blowhard",
  72. "blubbering",
  73. "bluestockings",
  74. "boing",
  75. "boffo (boffola)",
  76. "bombastic",
  77. "bonanza",
  78. "bonkers",
  79. "boondocks",
  80. "boondoggle",
  81. "bozo",
  82. "braggadocio",
  83. "brainstorm",
  84. "brannigan",
  85. "breakneck",
  86. "brouhaha",
  87. "buckaroo",
  88. "bucolic",
  89. "buffoon",
  90. "bugaboo",
  91. "bugbear",
  92. "bulbous",
  93. "bumbledom",
  94. "bumfuzzle",
  95. "bumpkin",
  96. "bungalow",
  97. "bunkum",
  98. "burnsides",
  99. "busybody",
  100. "cacophony",
  101. "cahoots",
  102. "calliope",
  103. "candelabra",
  104. "canoodle",
  105. "cantankerous",
  106. "catamaran",
  107. "catastrophe",
  108. "catawampus",
  109. "caterwaul",
  110. "chatterbox",
  111. "chichi",
  112. "chimerical",
  113. "chimichanga",
  114. "chitchat",
  115. "claptrap",
  116. "clishmaclaver",
  117. "cockamamie",
  118. "cockatoo",
  119. "codswallop",
  120. "collywobbles",
  121. "colossus",
  122. "comeuppance",
  123. "concoction",
  124. "conniption",
  125. "contraband",
  126. "conundrum",
  127. "convivial",
  128. "corkscrew",
  129. "cornucopia",
  130. "cowabunga",
  131. "coxcomb",
  132. "crackerjack",
  133. "crescendo",
  134. "crestfallen",
  135. "cryptozoology",
  136. "cuckoo",
  137. "curlicue",
  138. "curmudgeon",
  139. "demitasse",
  140. "denouement",
  141. "desperado",
  142. "diaphanous",
  143. "digeridoo",
  144. "dilemma",
  145. "dillydally",
  146. "dimwit",
  147. "diphthong",
  148. "dirigible",
  149. "discombobulated",
  150. "dodecahedron",
  151. "doldrums",
  152. "donkeyman",
  153. "donnybrook",
  154. "doodad",
  155. "doohickey",
  156. "dumbfounded",
  157. "dumbwaiter",
  158. "dunderhead",
  159. "earwig",
  160. "eavesdrop",
  161. "ebullient",
  162. "effervescence",
  163. "egads",
  164. "eggcorn",
  165. "egghead",
  166. "elixir",
  167. "ephemeral",
  168. "epiphany",
  169. "extraterrestrial",
  170. "finagle",
  171. "fandango",
  172. "festooned",
  173. "fez",
  174. "fiasco",
  175. "finicky",
  176. "firebrand",
  177. "fishwife",
  178. "fisticuffs",
  179. "flabbergasted",
  180. "flibbertigibbet",
  181. "flimflam",
  182. "flippant",
  183. "floccinaucinihilipilification",
  184. "flophouse",
  185. "flotsam",
  186. "flummoxed",
  187. "flyaway",
  188. "flyspeck",
  189. "folderol",
  190. "foofaraw",
  191. "foolhardy",
  192. "foolscap",
  193. "footloose",
  194. "fortuitous",
  195. "fracas",
  196. "frangipani",
  197. "freewheeling",
  198. "fricassee",
  199. "frippery",
  200. "frogman",
  201. "froufrou",
  202. "fussbudget",
  203. "gadfly",
  204. "gadzooks",
  205. "gallimaufry",
  206. "gangplank",
  207. "gangway",
  208. "gargoyle",
  209. "gasbag",
  210. "gazebo",
  211. "gazpacho",
  212. "gewgaw",
  213. "genteel",
  214. "ghostwriter",
  215. "gibberish",
  216. "gimcrack",
  217. "gizmo",
  218. "glabella",
  219. "glitch",
  220. "globetrotter",
  221. "gobbledygook",
  222. "gobsmacked",
  223. "goosebump",
  224. "gooseflesh",
  225. "gorgonzola",
  226. "gossamer",
  227. "grandiloquent",
  228. "greenhorn",
  229. "guffaw",
  230. "gumshoe",
  231. "guru",
  232. "gussied",
  233. "guttersnipe",
  234. "haberdashery",
  235. "haboob",
  236. "hairpin",
  237. "halcyon",
  238. "halfwit",
  239. "hangdog",
  240. "haphazard",
  241. "harebrained",
  242. "harumph",
  243. "headlong",
  244. "heartstrings",
  245. "heirloom",
  246. "hemidemisemiquaver",
  247. "heyday",
  248. "highfalutin",
  249. "hijinks",
  250. "hillbilly",
  251. "hippocampus",
  252. "hippogriff",
  253. "hobbledehoy",
  254. "hobnobbed",
  255. "hodgepodge",
  256. "hogwash",
  257. "hoodoo",
  258. "hoodwink",
  259. "hooey",
  260. "hooligan",
  261. "hoopla",
  262. "hootenanny",
  263. "hornswoggle",
  264. "horsefeathers",
  265. "hotbed",
  266. "hotfoot",
  267. "hothead",
  268. "hubbub",
  269. "hullabaloo",
  270. "humbug",
  271. "humdinger",
  272. "humdrum",
  273. "hushpuppy",
  274. "huzzah",
  275. "hyperbole",
  276. "idiom",
  277. "idiosyncrasies",
  278. "igloo",
  279. "ignoramus",
  280. "impromptu",
  281. "incognito",
  282. "incredulous",
  283. "indomitable",
  284. "indubitably",
  285. "infinitesimal",
  286. "interloper",
  287. "interrobang",
  288. "ironclad",
  289. "izzard",
  290. "jabberwocky",
  291. "jacuzzi",
  292. "jalopy",
  293. "jamboree",
  294. "jawbreaker",
  295. "jetsam",
  296. "jitney",
  297. "jubilee",
  298. "juggernaut",
  299. "jujubes",
  300. "jumbo",
  301. "junket",
  302. "juxtaposition",
  303. "kaleidoscope",
  304. "kaput",
  305. "kerfuffle",
  306. "kerplunk",
  307. "kibosh",
  308. "killjoy",
  309. "kismet",
  310. "knickerbocker",
  311. "knickknack",
  312. "kowtow",
  313. "kumquat",
  314. "kvetch",
  315. "lackadaisical",
  316. "lagoon",
  317. "lambasted",
  318. "lampoon",
  319. "landlubber",
  320. "laughingstock",
  321. "lexicographer",
  322. "limburger",
  323. "lingo",
  324. "loco",
  325. "loggerhead",
  326. "logjam",
  327. "logophile",
  328. "lollapalooza",
  329. "lollygag",
  330. "loofah",
  331. "loony",
  332. "loophole",
  333. "lugubrious",
  334. "lummox",
  335. "machinations",
  336. "madcap",
  337. "maelstrom",
  338. "magnificent",
  339. "majordomo",
  340. "malapropism",
  341. "malarkey",
  342. "manifesto",
  343. "mastermind",
  344. "mayhem",
  345. "mellifluous",
  346. "menagerie",
  347. "miasma",
  348. "miffed",
  349. "milquetoast",
  350. "misanthrope",
  351. "mishmash",
  352. "moocher",
  353. "mojo",
  354. "mollycoddle",
  355. "mondegreen",
  356. "moniker",
  357. "monkeyshines",
  358. "monsoon",
  359. "moonstruck",
  360. "mudpuppy",
  361. "mudslinger",
  362. "muffuletta",
  363. "mufti",
  364. "mulligatawny",
  365. "murmuration",
  366. "muumuu",
  367. "nabob",
  368. "nimrod",
  369. "nincompoop",
  370. "nitwit",
  371. "nomenclature",
  372. "nonplussed",
  373. "noodge",
  374. "numbskull",
  375. "onomatopoeia",
  376. "oomph",
  377. "outfox",
  378. "outlandish",
  379. "oxymoron",
  380. "pachyderm",
  381. "pagoda",
  382. "palindrome",
  383. "palomino",
  384. "panache",
  385. "pandemonium",
  386. "pantaloons",
  387. "papyrus",
  388. "parabola",
  389. "parallelogram",
  390. "parapet",
  391. "pedagogue",
  392. "peewee",
  393. "persimmon",
  394. "persnickety",
  395. "pettifogger",
  396. "phalanx",
  397. "phantonym",
  398. "phylactery",
  399. "piffle",
  400. "pizzazz",
  401. "plethora",
  402. "pogo",
  403. "pogonip",
  404. "pollex",
  405. "pollywog",
  406. "poltroon",
  407. "pomposity",
  408. "poppycock",
  409. "portmanteau",
  410. "potpourri",
  411. "pseudonym",
  412. "pugnacious",
  413. "pusillanimous",
  414. "pussyfoot",
  415. "quibble",
  416. "quicksilver",
  417. "quicksticks",
  418. "quiddle",
  419. "quinzee",
  420. "quirky",
  421. "quixotic",
  422. "raconteur",
  423. "rainmaker",
  424. "ragamuffin",
  425. "ragtag",
  426. "ransack",
  427. "rapscallion",
  428. "rejigger",
  429. "rendezvous",
  430. "resplendent",
  431. "rickrack",
  432. "ricochet",
  433. "riffraff",
  434. "rigmarole",
  435. "riposte",
  436. "roundabout",
  437. "roustabout",
  438. "rubberneck",
  439. "ruckus",
  440. "ruffian",
  441. "rugrat",
  442. "rumpus",
  443. "sabayon",
  444. "sashay",
  445. "sassafras",
  446. "scatterbrain",
  447. "schadenfreude",
  448. "schlep",
  449. "schmooze",
  450. "schmutz",
  451. "scintillating",
  452. "scrofulous",
  453. "scuttlebutt",
  454. "serendipity",
  455. "sesquipedalian",
  456. "shabang",
  457. "shenanigans",
  458. "skedaddle",
  459. "skullduggery",
  460. "slapdash",
  461. "slapstick",
  462. "slipshod",
  463. "smithereens",
  464. "smorgasbord",
  465. "snollygoster",
  466. "sobriquet",
  467. "sojourn",
  468. "spellbind",
  469. "splendiferous",
  470. "squeegee",
  471. "squooshy",
  472. "staccato",
  473. "stupefaction",
  474. "succotash",
  475. "supercilious",
  476. "superfluous",
  477. "Svengali",
  478. "switcheroo",
  479. "swizzlestick",
  480. "synchronicity",
  481. "talisman",
  482. "taradiddle",
  483. "tchotchke",
  484. "teepee",
  485. "telekinesis",
  486. "thingamabob",
  487. "thingamajig",
  488. "thunderstruck",
  489. "tidbit",
  490. "toadstool",
  491. "toothsome",
  492. "trapezoid",
  493. "tumultuous",
  494. "typhoon",
  495. "ululation",
  496. "vermicious",
  497. "vertigo",
  498. "verve",
  499. "vivacious",
  500. "vuvuzela",
  501. "wackadoodle",
  502. "whatchamacallit",
  503. "whimsical",
  504. "whippersnapper",
  505. "whirligig",
  506. "whoop",
  507. "widget",
  508. "windbag",
  509. "wipeout",
  510. "wonky",
  511. "xylophone",
  512. "yahoo",
  513. "yokel",
  514. "zaftig",
  515. "zephyr",
  516. "zeppelin",
  517. "ziggurat",
  518. "zigzag",
  519. "zonked",
  520. "zoom",
  521. "zydeco",
  522. "Awkward",
  523. "Bagpipes",
  524. "Banjo",
  525. "Bungler",
  526. "Croquet",
  527. "Crypt",
  528. "Dwarves",
  529. "Fervid",
  530. "Fishhook",
  531. "Fjord",
  532. "Gazebo",
  533. "Gypsy",
  534. "Haiku",
  535. "Haphazard",
  536. "Hyphen",
  537. "Ivory",
  538. "Jazzy",
  539. "Jiffy",
  540. "Jinx",
  541. "Jukebox",
  542. "Kayak",
  543. "Kiosk",
  544. "Klutz",
  545. "Memento",
  546. "Mystify",
  547. "Numbskull",
  548. "Ostracize",
  549. "Oxygen",
  550. "Pajama",
  551. "Phlegm",
  552. "Pixel",
  553. "Polka",
  554. "Quad",
  555. "Quip",
  556. "Rhythmic",
  557. "Rogue",
  558. "Sphinx",
  559. "Squawk",
  560. "Swivel",
  561. "Toady",
  562. "Twelfth",
  563. "Unzip",
  564. "Waxy",
  565. "Wildebeest",
  566. "Yacht",
  567. "Zealous",
  568. "Zigzag",
  569. "Zippy",
  570. "Zombie"
  571. };
  572.  
  573. return word[num];
  574. }
  575. }
  576.  
  577. import java.util.*;
  578.  
  579. public class Randomizer{
  580.  
  581. public static Random theInstance = null;
  582.  
  583. public Randomizer(){
  584.  
  585. }
  586.  
  587. public static Random getInstance(){
  588. if(theInstance == null){
  589. theInstance = new Random();
  590. }
  591. return theInstance;
  592. }
  593.  
  594. /**
  595. * Return a random boolean value.
  596. * @return True or false value simulating a coin flip.
  597. */
  598. public static boolean nextBoolean(){
  599. return Randomizer.getInstance().nextBoolean();
  600. }
  601.  
  602. /**
  603. * This method simulates a weighted coin flip which will return
  604. * true with the probability passed as a parameter.
  605. *
  606. * @param probability The probability that the method returns true, a value between 0 to 1 inclusive.
  607. * @return True or false value simulating a weighted coin flip.
  608. */
  609. public static boolean nextBoolean(double probability){
  610. return Randomizer.nextDouble() < probability;
  611. }
  612.  
  613. /**
  614. * This method returns a random integer.
  615. * @return A random integer.
  616. */
  617. public static int nextInt(){
  618. return Randomizer.getInstance().nextInt();
  619. }
  620.  
  621. /**
  622. * This method returns a random integer between 0 and n, exclusive.
  623. * @param n The maximum value for the range.
  624. * @return A random integer between 0 and n, exclusive.
  625. */
  626. public static int nextInt(int n){
  627. return Randomizer.getInstance().nextInt(n);
  628. }
  629.  
  630. /**
  631. * Return a number between min and max, inclusive.
  632. * @param min The minimum integer value of the range, inclusive.
  633. * @param max The maximum integer value in the range, inclusive.
  634. * @return A random integer between min and max.
  635. */
  636. public static int nextInt(int min, int max){
  637. return min + Randomizer.nextInt(max - min + 1);
  638. }
  639.  
  640. /**
  641. * Return a random double between 0 and 1.
  642. * @return A random double between 0 and 1.
  643. */
  644. public static double nextDouble(){
  645. return Randomizer.getInstance().nextDouble();
  646. }
  647.  
  648. /**
  649. * Return a random double between min and max.
  650. * @param min The minimum double value in the range.
  651. * @param max The maximum double value in the rang.
  652. * @return A random double between min and max.
  653. */
  654. public static double nextDouble(double min, double max){
  655. return min + (max - min) * Randomizer.nextDouble();
  656. }
  657.  
  658.  
  659. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement