diff options
Diffstat (limited to 'win32/config_H.gc')
-rw-r--r-- | win32/config_H.gc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/config_H.gc b/win32/config_H.gc index aac2416508..82e5d1862f 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -1348,7 +1348,7 @@ * function used to generate normalized random numbers. * Values include 15, 16, 31, and 48. */ -#define Drand01() rand() /**/ +#define Drand01() (rand()/(double)((unsigned)1<<RANDBITS)) /**/ #define Rand_seed_t unsigned /**/ #define seedDrand01(x) srand((Rand_seed_t)x) /**/ #define RANDBITS 15 /**/ |