Skip Menu |

This queue is for tickets about the List-MoreUtils CPAN distribution.

Report information
The Basics
Id: 106401
Status: resolved
Priority: 0/
Queue: List-MoreUtils

Owner: Nobody in particular
Requestors: blue [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.423

Subject: request: sample
Download (untitled) / with headers
text/plain 567b
Originally from List::Util's queue, but it got no response: "I frequently find myself in need of getting k random elements from a list of size n. To do this, I shuffle the list and take a slice of size k. But it would be more efficient when n is large to implement this as a truncated shuffle, so you can stop the shuffle algorithm after k steps. I would have proposed this for List::MoreUtils, but it might be better off in the same module as shuffle, especially if they can share the same XS implementation".
Download (untitled) / with headers
text/plain 313b
There're members, but Ticket's shall be sent to - please respect the choosen ticket URL, if you want to be heared. Maybe a working e-Mail address is an option, either. However - provide a nice Perl and XS implementation, suitable tests and I merge it.
Will be included in upcoming release of List::MoreUtils::XS and List::MoreUtils

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to