corrected a small syntax error introduced in the last commit

This commit is contained in:
Paolo Cignoni 2014-04-17 13:53:55 +00:00
parent 6e4edddcf5
commit e353355f12
1 changed files with 1 additions and 1 deletions

View File

@ -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.
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.