Skip to content

Instantly share code, notes, and snippets.

@CyberShadow
Forked from bhelyer/namegen.d
Created November 24, 2011 01:51
Show Gist options
  • Save CyberShadow/1390462 to your computer and use it in GitHub Desktop.
Save CyberShadow/1390462 to your computer and use it in GitHub Desktop.
void main()
{
import std.random, std.stdio, std.range, std.algorithm, std.string;
array(map!q{std.stdio.writeln(capitalize(array(map!q{cast(char)["aeiou", "bcdfghjklmnpqrstvwxyz"][a][std.random.uniform(0, $)]}([[1,0,1,1,0,1], [0,1,1,0,1,0]][std.random.uniform(0, $)][0..std.random.uniform(5, 7)])))), 42}(iota(12)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment