C++ reference¶
-
namespace
Random
¶ Functions
-
static std::uniform_real_distribution Random::dis_(0, 1)
- template <typename T>
-
int Random
WeightedChoiceIndex
(const std::vector<T> &population, const std::vector<double> &weights)¶
-
Random
¶Functions
static std::uniform_real_distribution Random::dis_(0, 1)
WeightedChoiceIndex
(const std::vector<T> &population, const std::vector<double> &weights)¶