Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: rowaa [...] cpan.org
Cc:
AdminCc:

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



Subject: [diff agains 0.22] Implementation of random_item
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.
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.
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+