mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-10 19:20:44 +01: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;
|
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)));
|
return ((unsigned int)(uniform()*(double)(n)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user