diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-06-20 12:30:42 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-06-20 12:30:42 +0000 |
commit | 45e1f367518bb495e36bd051232f4905926d6af5 (patch) | |
tree | 13f606412a8f6cde3300e4d41b1722ba5f6176e7 /mpfr.texi | |
parent | 806f1ccb034f86156538488f6a4be140a851c982 (diff) | |
download | mpfr-45e1f367518bb495e36bd051232f4905926d6af5.tar.gz |
Take the current exponent range into account in mpfr_urandomb
(which now returns an int).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2352 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.texi')
-rw-r--r-- | mpfr.texi | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1457,8 +1457,10 @@ Equivalent to @code{mpfr_nexttoward} where @var{y} is plus infinity. Equivalent to @code{mpfr_nexttoward} where @var{y} is minus infinity. @end deftypefun -@deftypefun void mpfr_urandomb (mpfr_t @var{rop}, gmp_randstate_t @var{state}) +@deftypefun int mpfr_urandomb (mpfr_t @var{rop}, gmp_randstate_t @var{state}) Generate a uniformly distributed random float in the interval 0 <= X < 1. +Return 0, unless the exponent is not in the current exponent range, in +which case @var{rop} is set to NaN and 1 is returned. @end deftypefun @deftypefun void mpfr_random (mpfr_t @var{rop}) |