in reply to •Re: Weighted random numbers generator
in thread Weighted random numbers generator

There's probably a CPAN module that does it.

I have a similar problem and already searched CPAN, but couldn't find anything. Any ideas how such an algorithm might be called?

Replies are listed 'Best First'.
Re: Re: Weighted random numbers generator
by spurperl (Priest) on Mar 16, 2003 at 06:25 UTC
    I'm not sure the algorithm would have a special name.

    It's just a name to generate "weighted uniform" distribution.
    I hope that the nodes in this thread helped you accomplish what you want - there is the initial solution and many improvements and ideas.