Peter Hickman
12/7/2007 1:14:00 PM
Piotr Wlodarek wrote:
> Recently I've seen a random user generator for Rails on some blog bu I
> can't find it now.
>
> I need to generate 1 million non-existing emails with associated names
> :-)
>
> Could you please recommend a tool?
>
Well there is a Perl module called Data::RandomPerson that generates
people records (written by yours truly) which creates gender, age, dob,
firstname, lastname and title.
use Data::RandomPerson;
my $r = Data::RandomPerson->new();
for(my $x = 0; $x < 1000000; $x++) {
my $p = $r->create();
print $p{firstname} . " " . $p{lastname} . "\n";
}
I use it to populate databases.