diff options
Diffstat (limited to 'win32/config_H.vc')
-rw-r--r-- | win32/config_H.vc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/config_H.vc b/win32/config_H.vc index 3c6d36856c..82d6218998 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -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 /**/ |