Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Bag uniform distribution algorithms

by davido (Archbishop)
on Apr 25, 2013 at 15:01 UTC ( #1030688=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    qw( A A A A )
    qw( B B )
    qw( C C C )
    qw( D )
    
  2. or download this
    qw( A C B A D C A B C A ) # I think...
    
  3. or download this
    # Sublists generated by an iterator.
    my @p1 = ( 'A'  , undef, undef,   'A', undef, undef,   'A', undef, und
    +ef,   'A' );
    ...
    
    print "@solution\n";
    # Produces A C B A D C A B A C
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1030688]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2016-08-26 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (375 votes). Check out past polls.