Name : perl-Tie-Pick
| |
Version : 2009110701
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 7.68
| Date : 2024-08-05 18:54:57
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tie-Pick-2009110701-7.68.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Randomly pick (and remove) an element from a set.
|
Description :
\'Tie::Pick\' lets you randomly pick an element from a set, and have that element removed from the set.
The set to pick from is given as an list of extra parameters on tieing the scalar. If the set is exhausted, the scalar will have the undefined value. A new set to pick from can be given by assigning a reference to an array of the values of the set to the scalar.
The algorithm used for picking values of the set is a variant of the Fisher-Yates algorithm, as discussed in Knuth [3]. It was first published by Fisher and Yates [2], and later by Durstenfeld [1]. The difference is that we only perform one iteration on each look up.
If you want to pick elements from a set, without removing the element after picking it, see the \'Tie::Select\' module.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/noarch |