Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random rand = new Random();
- string[] Male = new string[] { "JAMES", "JOHN", "ROBERT", "MICHAEL", "WILLIAM", "DAVID", "RICHARD", "CHARLES", "JOSEPH", "THOMAS", "CHRISTOPHER", "DANIEL", "PAUL", "MARK", "DONALD", "GEORGE", "KENNETH", "STEVEN", "EDWARD", "BRIAN", "RONALD", "ANTHONY", "KEVIN", "JASON" };
- string[] Female = new string[] { "Sophia", "Isabella", "Emma", "Olivia", "Ava", "Emily", "Abigail", "Madison", "Mia", "Chloe", "Elizabeth", "Ella", "Addison", "Natalie", "Lily", "Grace", "Samantha", "Avery", "Sofia", "Aubrey", "Brooklyn", "Lillian", "Victoria", "Evelyn" };
- string[] Last = new string[] { "SMITH", "JOHNSON", "WILLIAMS", "JONES", "BROWN", "DAVIS", "MILLER", "WILSON", "MOORE", "TAYLOR", "ANDERSON", "THOMAS", "JACKSON", "WHITE", "HARRIS", "MARTIN", "THOMPSON", "GARCIA", "MARTINEZ", "ROBINSON", "CLARK", "RODRIGUEZ", "LEWIS" };
- string Input;
- bool MaleName=false, FemaleName=false;
- int i;
- Console.Write("Male Name ? (y/N):");
- Input = Console.ReadLine().Trim().ToLower();
- MaleName = (Input == "" || Input == "n") ? false : true;
- if (MaleName){
- for (i = 0; i <9;i++){
- Console.WriteLine("{0} {1} {2}", Male[rand.Next(0,9)], Male[rand.Next(0,9)], Last[rand.Next(0,9)]);
- }
- }
- if (MaleName==false){
- Console.Write("Female Name ? (y/N):");
- Input = Console.ReadLine().Trim().ToLower();
- FemaleName = (Input == "" || Input == "n") ? false : true;
- if (FemaleName){
- for (i = 0; i <9; i++){
- Console.WriteLine("{0} {1} {2}", Female[rand.Next(0,9)], Female[rand.Next(0,9)], Last[rand.Next(0,9)]);
- }
- }
- }
- if (MaleName == false && FemaleName == false){
- for (i = 0; i <9; i++){
- if(rand.Next(0,9) % 2 == 0){
- Console.WriteLine("{0} {1} {2}", Female[rand.Next(0, 9)], Male[rand.Next(0, 9)], Last[rand.Next(0, 9)]);
- }else{
- Console.WriteLine("{0} {1} {2}", Male[rand.Next(0,9)], Male[rand.Next(0,9)], Last[rand.Next(0,9)]);
- }
- }
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement