corrected a small syntax error introduced in the last commit
This commit is contained in:
parent
6e4edddcf5
commit
e353355f12
vcg/complex/algorithms
|
@ -212,7 +212,7 @@ static math::MarsenneTwisterRNG &SamplingRandomGenerator()
|
||||||
// Returns an integer random number in the [0,i-1] interval using the improve Marsenne-Twister method.
|
// Returns an integer random number in the [0,i-1] interval using the improve Marsenne-Twister method.
|
||||||
static unsigned int RandomInt(unsigned int i)
|
static unsigned int RandomInt(unsigned int i)
|
||||||
{
|
{
|
||||||
return (SamplingRandomGenerator().generate(0) % i);
|
return (SamplingRandomGenerator().generate(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns a random number in the [0,1) real interval using the improved Marsenne-Twister method.
|
// Returns a random number in the [0,1) real interval using the improved Marsenne-Twister method.
|
||||||
|
|
Loading…
Reference in New Issue