Fix RandomNumberGenerator::rand_weighted return type

This commit is contained in:
David Luevano Alvarado 2024-03-02 15:34:51 -06:00
parent f2045ba822
commit 981883d041
4 changed files with 6 additions and 6 deletions

View file

@ -90,7 +90,7 @@ public:
return pcg32_boundedrand_r(&pcg, bounds);
}
int rand_weighted(const Vector<float> &p_weights);
int64_t rand_weighted(const Vector<float> &p_weights);
// Obtaining floating point numbers in [0, 1] range with "good enough" uniformity.
// These functions sample the output of rand() as the fraction part of an infinite binary number,