mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-06-17 23:07:05 +01:00
fix in discrete random generator return type
This commit is contained in:
@ -668,7 +668,7 @@ double RandGen::uniform(const double a, const double b)
|
||||
return (b-a)*rx + a;
|
||||
}
|
||||
|
||||
double RandGen::discreteUniform(const unsigned int n)
|
||||
unsigned int RandGen::discreteUniform(const unsigned int n)
|
||||
{
|
||||
return ((unsigned int)(uniform()*(double)(n)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user