Acme-MorningMusume-ShinMember
view release on metacpan or search on metacpan
lib/Acme/MorningMusume/ShinMember.pm view on Meta::CPAN
$attributes{blood_type} = Acme::BloodType->new(
{phenotype => $mom->blood_type}
)->cross(
Acme::BloodType->new(
{phenotype => $dad->blood_type}))
->get_bloodtype;
$attributes{hometown} = (rand 1 < 0.5 ? $mom : $dad)->hometown;
utf8::decode($attributes{hometown});
$attributes{graduate_date} = undef;
$attributes{class} = int ($mom->class - rand($mom->class - $dad->class));
$attributes{emoticon} = [(@{$dad->emoticon||()},
@{$mom->emoticon||()})[0..rand 2]];
utf8::decode($_) for @{$attributes{emoticon}};
return %attributes;
}
=head1 AUTHOR
Jonathan Rockway, C<< <jrockway at cpan.org> >>
( run in 2.291 seconds using v1.01-cache-2.11-cpan-d80b1682f3f )