Skip Menu |
 

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

Report information
The Basics
Id: 54732
Status: open
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: (no value)



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;


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.