Subject: Re: [Boost-users] Random library, discrete distribution
From: er (erwann.rogard_at_[hidden])
Date: 2009-04-05 20:15:33


> request for it or not?

A multinomial distribution? Sure, common enough that I would use it. I
would use std::partial_sum and std::distance and return only idx.
Perhaps have an option to sort the weights for greater performance. Thanks.