Data::Lotter

Data lottery module by its own weight
Download

Data::Lotter Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Takeshi Miki
  • Publisher web site:
  • http://search.cpan.org/~miki/

Data::Lotter Tags


Data::Lotter Description

Data lottery module by its own weight Data::Lotter is data lottery Perl module. It provides both pattern such as the lottery and the election.SYNOPSIS use Data::Lotter; # prepare a HASH data my ndidates = ( red => 10, green => 10, blue => 10, yellow => 10, white => 10, ); my $lotter = Data::Lotter->new(ndidates); # normal pickup my $ret = $lotter->pickup(3); # ex. ( red, green, yellow ) = @ret # removal pickup ( => ndidates will be left 4 items ) my @ret = $lotter->pickup(1, "REMOVE"); Requirements: · Perl


Data::Lotter Related Software