Skip to content

Instantly share code, notes, and snippets.

@caleb-vear
Created August 21, 2011 06:30
Show Gist options
  • Save caleb-vear/1160248 to your computer and use it in GitHub Desktop.
Save caleb-vear/1160248 to your computer and use it in GitHub Desktop.
Sample of GuessWho c# library
var randomName = new NameGenerator();
const int takeCount = 2;
Console.WriteLine("First {0} male names", takeCount);
foreach (var name in randomName.MaleNames().Take(takeCount))
Console.WriteLine(name);
Console.WriteLine();
Console.WriteLine("First {0} female names", takeCount);
foreach (var name in randomName.FemaleNames().Take(takeCount))
Console.WriteLine(name);
Console.WriteLine();
Console.WriteLine("First {0} all names", takeCount);
foreach (var name in randomName.Names().Take(takeCount))
Console.WriteLine(name);
First 2 male names
Steve Ashcraft
Christopher Timothy Bischoff
First 2 female names
Denise Jan Dellinger
Brigida Carpenter
First 2 all names
Ivan Brent Duffey
Christy Mildred Clark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment