Advertisement
uniblab

Cub scout skit generator

Jan 29th, 2020
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.87 KB | None | 0 0
  1. public static class Program {
  2.  
  3.     public static System.Int32 Main( System.String[] args ) {
  4.  
  5.         System.Int32 charCount = 5;
  6.         if ( 0 < args.Length ) {
  7.             charCount = System.Int32.Parse( args[ 0 ] );
  8.         }
  9.  
  10.         var characters = new System.String[] {
  11.             "Actor", "Clown", "Ice Cream Man", "Nurse", "Swimmer",
  12.             "Anteater", "Circus Ringmaster", "Ice Skater", "Pizza Man", "Tennis Player",
  13.             "Army Sergeant", "Cook", "Knight", "Plumber", "Tin man",
  14.             "Astronaut", "Doctor", "Leprechaun", "Policeman", "Taxi Driver",
  15.             "Bank President", "Drama Teacher", "Lion", "Package Delivery Person", "TV Repairman",
  16.             "Barber", "Fireman", "Laboratory Assistant", "Principal", "US President",
  17.             "Batman", "Football Player", "Librarian", "Quality Control Inspector", "Veterinarian",
  18.             "Bear", "Forest Ranger", "Monkey", "Race Car Driver", "Weight Lifter",
  19.             "Boxer", "Frog", "Movie Star", "Racquet Ball Player", "Writer",
  20.             "Brain Surgeon", "Gym Teacher", "Music Teacher", "Scarecrow",
  21.             "Bus Driver", "Gymnast", "News Reporter", "Senator"
  22.         };
  23.         var charLen = characters.Length;
  24.  
  25.         var places = new System.String[] {
  26.             "Baseball Game", "Picnic", "In an Elevator", "In a Spaceship", "On a Sailboat",
  27.             "Football Game", "Circus", "In a Cave", "In a Swamp", "On an Abandoned Island",
  28.             "Gas Station", "Empire State Building", "In a Classroom", "In a Tree", "On the Moon",
  29.             "Amusement Park", "Ice Skating Rink", "In a Closet", "In the Desert", "On the Top of a Mountain",
  30.             "McDonald's", "Police Station", "In a Jungle", "In a Tent", "Under a Bridge",
  31.             "School", "Shoe Store", "In a Pig Pen", "On a Bus", "Under Water",
  32.             "Beach", "In the Park", "In a Castle", "On a Roller Coaster"
  33.         };
  34.         var placeLen = places.Length;
  35.  
  36.         var challenges = new System.String[] {
  37.             "Arrow", "Candy", "Heavy", "Mud", "Rubber Band",
  38.             "Baseball", "Cotton Candy", "In a Stew", "Newspaper", "Shoes",
  39.             "Bat", "Crowded", "In the Dark", "Old", "Treasure Map",
  40.             "Bewitched", "Ears of Corn", "Luck", "Onion", "Twins",
  41.             "Bubble Gum", "Fortune", "Magic", "Popcorn", "Wrecked",
  42.             "Bug", "Gold", "Money", "Roller Skates"
  43.         };
  44.         var challengeLen = challenges.Length;
  45.  
  46.         var law = new System.String[ 12 ] {
  47.             "Trustworthy",
  48.             "Loyal",
  49.             "Helpful",
  50.             "Friendly",
  51.             "Courteous",
  52.             "Kind",
  53.             "Obedient",
  54.             "Cheerful",
  55.             "Thrifty",
  56.             "Brave",
  57.             "Clean",
  58.             "Reverent"
  59.         };
  60.         var lawLen = 12;
  61.  
  62.         var rand = new System.Random();
  63.         for ( System.Int32 i = 0; i < charCount; i++ ) {
  64.             System.Console.Out.WriteLine( "Character: {0}", characters[ rand.Next( charLen ) ] );
  65.         }
  66.         System.Console.Out.WriteLine( System.String.Empty );
  67.  
  68.         System.Console.Out.WriteLine( "Place: {0}", places[ rand.Next( placeLen ) ] );
  69.         System.Console.Out.WriteLine( "Challenge: {0}", challenges[ rand.Next( challengeLen ) ] );
  70.         System.Console.Out.WriteLine( "Law: {0}", law[ rand.Next( lawLen ) ] );
  71.  
  72.         return 0;
  73.     }
  74.  
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement