Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyProgram extends ConsoleProgram
- {
- public void run()
- {
- words word = new words();
- Randomizer rand = new Randomizer();
- System.out.println(word.wordBank(rand.nextInt(0, 500)));
- }
- }
- public class words
- {
- public words()
- {
- }
- public String wordBank(int num)
- {
- String[] word = {
- "abecedarian",
- "abracadabra",
- "accoutrements",
- "adagio",
- "aficionado",
- "agita",
- "agog",
- "akimbo",
- "alfresco",
- "aloof",
- "ambrosial",
- "amok",
- "ampersand",
- "anemone",
- "anthropomorphic",
- "antimacassar",
- "aplomb",
- "apogee",
- "apoplectic",
- "appaloosa",
- "apparatus",
- "archipelago",
- "avuncular",
- "azure",
- "babushka",
- "bailiwick",
- "bafflegab",
- "balderdash",
- "ballistic",
- "bamboozle",
- "bandwagon",
- "barnstorming",
- "beanpole",
- "bedlam",
- "befuddled",
- "bellwether",
- "berserk",
- "bibliopole",
- "bigmouth",
- "bippy",
- "blabbermouth",
- "blatherskite",
- "blindside",
- "blob",
- "blockhead",
- "blowback",
- "blowhard",
- "blubbering",
- "bluestockings",
- "boing",
- "boffo (boffola)",
- "bombastic",
- "bonanza",
- "bonkers",
- "boondocks",
- "boondoggle",
- "bozo",
- "braggadocio",
- "brainstorm",
- "brannigan",
- "breakneck",
- "brouhaha",
- "buckaroo",
- "bucolic",
- "buffoon",
- "bugaboo",
- "bugbear",
- "bulbous",
- "bumbledom",
- "bumfuzzle",
- "bumpkin",
- "bungalow",
- "bunkum",
- "burnsides",
- "busybody",
- "cacophony",
- "cahoots",
- "calliope",
- "candelabra",
- "canoodle",
- "cantankerous",
- "catamaran",
- "catastrophe",
- "catawampus",
- "caterwaul",
- "chatterbox",
- "chichi",
- "chimerical",
- "chimichanga",
- "chitchat",
- "claptrap",
- "clishmaclaver",
- "cockamamie",
- "cockatoo",
- "codswallop",
- "collywobbles",
- "colossus",
- "comeuppance",
- "concoction",
- "conniption",
- "contraband",
- "conundrum",
- "convivial",
- "corkscrew",
- "cornucopia",
- "cowabunga",
- "coxcomb",
- "crackerjack",
- "crescendo",
- "crestfallen",
- "cryptozoology",
- "cuckoo",
- "curlicue",
- "curmudgeon",
- "demitasse",
- "denouement",
- "desperado",
- "diaphanous",
- "digeridoo",
- "dilemma",
- "dillydally",
- "dimwit",
- "diphthong",
- "dirigible",
- "discombobulated",
- "dodecahedron",
- "doldrums",
- "donkeyman",
- "donnybrook",
- "doodad",
- "doohickey",
- "dumbfounded",
- "dumbwaiter",
- "dunderhead",
- "earwig",
- "eavesdrop",
- "ebullient",
- "effervescence",
- "egads",
- "eggcorn",
- "egghead",
- "elixir",
- "ephemeral",
- "epiphany",
- "extraterrestrial",
- "finagle",
- "fandango",
- "festooned",
- "fez",
- "fiasco",
- "finicky",
- "firebrand",
- "fishwife",
- "fisticuffs",
- "flabbergasted",
- "flibbertigibbet",
- "flimflam",
- "flippant",
- "floccinaucinihilipilification",
- "flophouse",
- "flotsam",
- "flummoxed",
- "flyaway",
- "flyspeck",
- "folderol",
- "foofaraw",
- "foolhardy",
- "foolscap",
- "footloose",
- "fortuitous",
- "fracas",
- "frangipani",
- "freewheeling",
- "fricassee",
- "frippery",
- "frogman",
- "froufrou",
- "fussbudget",
- "gadfly",
- "gadzooks",
- "gallimaufry",
- "gangplank",
- "gangway",
- "gargoyle",
- "gasbag",
- "gazebo",
- "gazpacho",
- "gewgaw",
- "genteel",
- "ghostwriter",
- "gibberish",
- "gimcrack",
- "gizmo",
- "glabella",
- "glitch",
- "globetrotter",
- "gobbledygook",
- "gobsmacked",
- "goosebump",
- "gooseflesh",
- "gorgonzola",
- "gossamer",
- "grandiloquent",
- "greenhorn",
- "guffaw",
- "gumshoe",
- "guru",
- "gussied",
- "guttersnipe",
- "haberdashery",
- "haboob",
- "hairpin",
- "halcyon",
- "halfwit",
- "hangdog",
- "haphazard",
- "harebrained",
- "harumph",
- "headlong",
- "heartstrings",
- "heirloom",
- "hemidemisemiquaver",
- "heyday",
- "highfalutin",
- "hijinks",
- "hillbilly",
- "hippocampus",
- "hippogriff",
- "hobbledehoy",
- "hobnobbed",
- "hodgepodge",
- "hogwash",
- "hoodoo",
- "hoodwink",
- "hooey",
- "hooligan",
- "hoopla",
- "hootenanny",
- "hornswoggle",
- "horsefeathers",
- "hotbed",
- "hotfoot",
- "hothead",
- "hubbub",
- "hullabaloo",
- "humbug",
- "humdinger",
- "humdrum",
- "hushpuppy",
- "huzzah",
- "hyperbole",
- "idiom",
- "idiosyncrasies",
- "igloo",
- "ignoramus",
- "impromptu",
- "incognito",
- "incredulous",
- "indomitable",
- "indubitably",
- "infinitesimal",
- "interloper",
- "interrobang",
- "ironclad",
- "izzard",
- "jabberwocky",
- "jacuzzi",
- "jalopy",
- "jamboree",
- "jawbreaker",
- "jetsam",
- "jitney",
- "jubilee",
- "juggernaut",
- "jujubes",
- "jumbo",
- "junket",
- "juxtaposition",
- "kaleidoscope",
- "kaput",
- "kerfuffle",
- "kerplunk",
- "kibosh",
- "killjoy",
- "kismet",
- "knickerbocker",
- "knickknack",
- "kowtow",
- "kumquat",
- "kvetch",
- "lackadaisical",
- "lagoon",
- "lambasted",
- "lampoon",
- "landlubber",
- "laughingstock",
- "lexicographer",
- "limburger",
- "lingo",
- "loco",
- "loggerhead",
- "logjam",
- "logophile",
- "lollapalooza",
- "lollygag",
- "loofah",
- "loony",
- "loophole",
- "lugubrious",
- "lummox",
- "machinations",
- "madcap",
- "maelstrom",
- "magnificent",
- "majordomo",
- "malapropism",
- "malarkey",
- "manifesto",
- "mastermind",
- "mayhem",
- "mellifluous",
- "menagerie",
- "miasma",
- "miffed",
- "milquetoast",
- "misanthrope",
- "mishmash",
- "moocher",
- "mojo",
- "mollycoddle",
- "mondegreen",
- "moniker",
- "monkeyshines",
- "monsoon",
- "moonstruck",
- "mudpuppy",
- "mudslinger",
- "muffuletta",
- "mufti",
- "mulligatawny",
- "murmuration",
- "muumuu",
- "nabob",
- "nimrod",
- "nincompoop",
- "nitwit",
- "nomenclature",
- "nonplussed",
- "noodge",
- "numbskull",
- "onomatopoeia",
- "oomph",
- "outfox",
- "outlandish",
- "oxymoron",
- "pachyderm",
- "pagoda",
- "palindrome",
- "palomino",
- "panache",
- "pandemonium",
- "pantaloons",
- "papyrus",
- "parabola",
- "parallelogram",
- "parapet",
- "pedagogue",
- "peewee",
- "persimmon",
- "persnickety",
- "pettifogger",
- "phalanx",
- "phantonym",
- "phylactery",
- "piffle",
- "pizzazz",
- "plethora",
- "pogo",
- "pogonip",
- "pollex",
- "pollywog",
- "poltroon",
- "pomposity",
- "poppycock",
- "portmanteau",
- "potpourri",
- "pseudonym",
- "pugnacious",
- "pusillanimous",
- "pussyfoot",
- "quibble",
- "quicksilver",
- "quicksticks",
- "quiddle",
- "quinzee",
- "quirky",
- "quixotic",
- "raconteur",
- "rainmaker",
- "ragamuffin",
- "ragtag",
- "ransack",
- "rapscallion",
- "rejigger",
- "rendezvous",
- "resplendent",
- "rickrack",
- "ricochet",
- "riffraff",
- "rigmarole",
- "riposte",
- "roundabout",
- "roustabout",
- "rubberneck",
- "ruckus",
- "ruffian",
- "rugrat",
- "rumpus",
- "sabayon",
- "sashay",
- "sassafras",
- "scatterbrain",
- "schadenfreude",
- "schlep",
- "schmooze",
- "schmutz",
- "scintillating",
- "scrofulous",
- "scuttlebutt",
- "serendipity",
- "sesquipedalian",
- "shabang",
- "shenanigans",
- "skedaddle",
- "skullduggery",
- "slapdash",
- "slapstick",
- "slipshod",
- "smithereens",
- "smorgasbord",
- "snollygoster",
- "sobriquet",
- "sojourn",
- "spellbind",
- "splendiferous",
- "squeegee",
- "squooshy",
- "staccato",
- "stupefaction",
- "succotash",
- "supercilious",
- "superfluous",
- "Svengali",
- "switcheroo",
- "swizzlestick",
- "synchronicity",
- "talisman",
- "taradiddle",
- "tchotchke",
- "teepee",
- "telekinesis",
- "thingamabob",
- "thingamajig",
- "thunderstruck",
- "tidbit",
- "toadstool",
- "toothsome",
- "trapezoid",
- "tumultuous",
- "typhoon",
- "ululation",
- "vermicious",
- "vertigo",
- "verve",
- "vivacious",
- "vuvuzela",
- "wackadoodle",
- "whatchamacallit",
- "whimsical",
- "whippersnapper",
- "whirligig",
- "whoop",
- "widget",
- "windbag",
- "wipeout",
- "wonky",
- "xylophone",
- "yahoo",
- "yokel",
- "zaftig",
- "zephyr",
- "zeppelin",
- "ziggurat",
- "zigzag",
- "zonked",
- "zoom",
- "zydeco",
- "Awkward",
- "Bagpipes",
- "Banjo",
- "Bungler",
- "Croquet",
- "Crypt",
- "Dwarves",
- "Fervid",
- "Fishhook",
- "Fjord",
- "Gazebo",
- "Gypsy",
- "Haiku",
- "Haphazard",
- "Hyphen",
- "Ivory",
- "Jazzy",
- "Jiffy",
- "Jinx",
- "Jukebox",
- "Kayak",
- "Kiosk",
- "Klutz",
- "Memento",
- "Mystify",
- "Numbskull",
- "Ostracize",
- "Oxygen",
- "Pajama",
- "Phlegm",
- "Pixel",
- "Polka",
- "Quad",
- "Quip",
- "Rhythmic",
- "Rogue",
- "Sphinx",
- "Squawk",
- "Swivel",
- "Toady",
- "Twelfth",
- "Unzip",
- "Waxy",
- "Wildebeest",
- "Yacht",
- "Zealous",
- "Zigzag",
- "Zippy",
- "Zombie"
- };
- return word[num];
- }
- }
- import java.util.*;
- public class Randomizer{
- public static Random theInstance = null;
- public Randomizer(){
- }
- public static Random getInstance(){
- if(theInstance == null){
- theInstance = new Random();
- }
- return theInstance;
- }
- /**
- * Return a random boolean value.
- * @return True or false value simulating a coin flip.
- */
- public static boolean nextBoolean(){
- return Randomizer.getInstance().nextBoolean();
- }
- /**
- * This method simulates a weighted coin flip which will return
- * true with the probability passed as a parameter.
- *
- * @param probability The probability that the method returns true, a value between 0 to 1 inclusive.
- * @return True or false value simulating a weighted coin flip.
- */
- public static boolean nextBoolean(double probability){
- return Randomizer.nextDouble() < probability;
- }
- /**
- * This method returns a random integer.
- * @return A random integer.
- */
- public static int nextInt(){
- return Randomizer.getInstance().nextInt();
- }
- /**
- * This method returns a random integer between 0 and n, exclusive.
- * @param n The maximum value for the range.
- * @return A random integer between 0 and n, exclusive.
- */
- public static int nextInt(int n){
- return Randomizer.getInstance().nextInt(n);
- }
- /**
- * Return a number between min and max, inclusive.
- * @param min The minimum integer value of the range, inclusive.
- * @param max The maximum integer value in the range, inclusive.
- * @return A random integer between min and max.
- */
- public static int nextInt(int min, int max){
- return min + Randomizer.nextInt(max - min + 1);
- }
- /**
- * Return a random double between 0 and 1.
- * @return A random double between 0 and 1.
- */
- public static double nextDouble(){
- return Randomizer.getInstance().nextDouble();
- }
- /**
- * Return a random double between min and max.
- * @param min The minimum double value in the range.
- * @param max The maximum double value in the rang.
- * @return A random double between min and max.
- */
- public static double nextDouble(double min, double max){
- return min + (max - min) * Randomizer.nextDouble();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement