The following module was proposed for inclusion in the Module List:
modid: Data::Random::Weighted
DSLIP: adpfp
description: Randomize results on a weighted scale
userid: GEISTBERG (Russel Fisher)
chapterid: 6 (Data_Type_Utilities)
communities:
http://prepan.org/module/nXWJ8Y9sBCQ
similar:
http://search.cpan.org/~dsadinoff/List-Util-WeightedChoice-0.06/lib/List/Util/WeightedChoice.pm
rationale:
The purpose of the code is to return random data based on a
weighted scale. The unique approach is that it takes the results and
the probabilities in through a single hash, builds a anonymous
subroutine that randomly provides the weighted data. Based on the
simple logic in the return sub reference it works very efficiently
and compartmentalizes the probabilities and the results. The code is
currently at https://github.com/geistberg/Data-Random-Weighted, but
I want to publish that on cpan.
enteredby: GEISTBERG (Russel Fisher)
enteredon: Fri Apr 4 19:06:40 2014 UTC
The resulting entry would be:
Data::Random::
::Weighted adpfp Randomize results on a weighted scale GEISTBERG
Thanks for registering,
--
The PAUSE
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=1bf00000_dd9305bd5978f9bb&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=1bf00000_dd9305bd5978f9bb&SUBMIT_pause99_add_mod_insertit=1
Peek at the current permissions:
https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=Data%3A%3ARandom%3A%3AWeighted