diff --git a/lib/RandGen.cpp b/lib/RandGen.cpp index caff086..141ae8d 100644 --- a/lib/RandGen.cpp +++ b/lib/RandGen.cpp @@ -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))); }