Pick random element: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: Fix comment: Perl 6 --> Raku) |
||
Line 983: | Line 983: | ||
There are various ways of doing something similar, though. |
There are various ways of doing something similar, though. |
||
Raku has actually two methods (with associated functional forms) |
|||
to return random elements depending on whether you are doing selection |
to return random elements depending on whether you are doing selection |
||
with or without replacement. |
with or without replacement. |