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