Fix RandomNumberGenerator::rand_weighted return type
This commit is contained in:
parent
f2045ba822
commit
981883d041
4 changed files with 6 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue