mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 08:55:37 +00:00
fix in discrete random generator return type
This commit is contained in:
parent
0e1ef33954
commit
dd43786189
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user