Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class Program {
- public static System.Int32 Main( System.String[] args ) {
- System.Int32 charCount = 5;
- if ( 0 < args.Length ) {
- charCount = System.Int32.Parse( args[ 0 ] );
- }
- var characters = new System.String[] {
- "Actor", "Clown", "Ice Cream Man", "Nurse", "Swimmer",
- "Anteater", "Circus Ringmaster", "Ice Skater", "Pizza Man", "Tennis Player",
- "Army Sergeant", "Cook", "Knight", "Plumber", "Tin man",
- "Astronaut", "Doctor", "Leprechaun", "Policeman", "Taxi Driver",
- "Bank President", "Drama Teacher", "Lion", "Package Delivery Person", "TV Repairman",
- "Barber", "Fireman", "Laboratory Assistant", "Principal", "US President",
- "Batman", "Football Player", "Librarian", "Quality Control Inspector", "Veterinarian",
- "Bear", "Forest Ranger", "Monkey", "Race Car Driver", "Weight Lifter",
- "Boxer", "Frog", "Movie Star", "Racquet Ball Player", "Writer",
- "Brain Surgeon", "Gym Teacher", "Music Teacher", "Scarecrow",
- "Bus Driver", "Gymnast", "News Reporter", "Senator"
- };
- var charLen = characters.Length;
- var places = new System.String[] {
- "Baseball Game", "Picnic", "In an Elevator", "In a Spaceship", "On a Sailboat",
- "Football Game", "Circus", "In a Cave", "In a Swamp", "On an Abandoned Island",
- "Gas Station", "Empire State Building", "In a Classroom", "In a Tree", "On the Moon",
- "Amusement Park", "Ice Skating Rink", "In a Closet", "In the Desert", "On the Top of a Mountain",
- "McDonald's", "Police Station", "In a Jungle", "In a Tent", "Under a Bridge",
- "School", "Shoe Store", "In a Pig Pen", "On a Bus", "Under Water",
- "Beach", "In the Park", "In a Castle", "On a Roller Coaster"
- };
- var placeLen = places.Length;
- var challenges = new System.String[] {
- "Arrow", "Candy", "Heavy", "Mud", "Rubber Band",
- "Baseball", "Cotton Candy", "In a Stew", "Newspaper", "Shoes",
- "Bat", "Crowded", "In the Dark", "Old", "Treasure Map",
- "Bewitched", "Ears of Corn", "Luck", "Onion", "Twins",
- "Bubble Gum", "Fortune", "Magic", "Popcorn", "Wrecked",
- "Bug", "Gold", "Money", "Roller Skates"
- };
- var challengeLen = challenges.Length;
- var law = new System.String[ 12 ] {
- "Trustworthy",
- "Loyal",
- "Helpful",
- "Friendly",
- "Courteous",
- "Kind",
- "Obedient",
- "Cheerful",
- "Thrifty",
- "Brave",
- "Clean",
- "Reverent"
- };
- var lawLen = 12;
- var rand = new System.Random();
- for ( System.Int32 i = 0; i < charCount; i++ ) {
- System.Console.Out.WriteLine( "Character: {0}", characters[ rand.Next( charLen ) ] );
- }
- System.Console.Out.WriteLine( System.String.Empty );
- System.Console.Out.WriteLine( "Place: {0}", places[ rand.Next( placeLen ) ] );
- System.Console.Out.WriteLine( "Challenge: {0}", challenges[ rand.Next( challengeLen ) ] );
- System.Console.Out.WriteLine( "Law: {0}", law[ rand.Next( lawLen ) ] );
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement