diff options
author | Clio <menenem@bk.ru> | 2011-02-14 13:02:09 -0400 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-02-14 18:18:40 +0000 |
commit | b70ecb4303a6f308f6be4d3b087aacb94258007d (patch) | |
tree | d7c009ddf027e9381d0606eb6310ab607179c01c /basic | |
parent | 131e816e17bd32c4f4ccd3ca89c6ac6518a77fc0 (diff) |
IZ #116920 RND returns one fix
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/methods.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index b5967ff4dc11..380064bb0da8 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -3446,7 +3446,7 @@ RTLFUNC(Rnd) else { double nRand = (double)rand(); - nRand = ( nRand / (double)RAND_MAX ); + nRand = ( nRand / ((double)RAND_MAX + 1.0)); rPar.Get(0)->PutDouble( nRand ); } } |