eoRNG.h
This commit is contained in:
parent
471bd9a9e2
commit
f948ccda3a
2 changed files with 4 additions and 4 deletions
|
|
@ -151,7 +151,7 @@ public :
|
|||
*/
|
||||
double uniform(double m = 1.0)
|
||||
{ // random number between [0, m]
|
||||
return m * double(rand()) / double(1.0+rand_max());
|
||||
return m * double(rand()) / double(rand_max());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Reference in a new issue