|Syntactic Confectionery Delight|
Which Permute or other module can give me all possible subsets of 6 numbers out of 40?by Cody Fendant (Friar)
|on Apr 11, 2018 at 06:50 UTC||Need Help??|
Cody Fendant has asked for the
wisdom of the Perl Monks concerning the following question:
I've been looking through different modules and don't seem to see one which provides this.
Given a lottery in which 6 numbers are drawn from 40, how do I generate lottery tickets covering every possible winning combination?
Order is not important and obviously each number can only be drawn once.
For instance, if two numbers are drawn from three possible numbers (1, 2, 3), the combinations are:
Is there a module which would generate that for me with "any six numbers drawn from [1..40]"?