Skip Menu | will be shut down on March 1st, 2021.

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

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

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

Bug Information
Severity: Normal
Broken in: 0.22
Fixed in: 0.420_001

Subject: [diff agains 0.22] Implementation of random_item
Download (untitled) / with headers
text/plain 139b
Randomizer initialization part shamelessly stolen from List::Util. No docs. PP implementation: sub random_item(@){ return $_[rand @_]; }
Subject: diff
Download diff
application/octet-stream 1002b

Message body not shown because it is not plain text.

I'd like to see a reasonable use-case for this function.
Download (untitled) / with headers
text/plain 172b
Well, still no reasonable use-case. Since it has to be maintained and tested and protected against regressions, I'd like to see it's value before adding new functionality.
Download (untitled) / with headers
text/plain 136b
With upcoming release, samples(n, @list) will be provided. This fulfilles the complete request by using ($rand_item) = samples 1, @list;
samples was provided with 0.420+

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

Please report any issues with to