summaryrefslogtreecommitdiff
path: root/mpfr.texi
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-06-20 12:30:42 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-06-20 12:30:42 +0000
commit45e1f367518bb495e36bd051232f4905926d6af5 (patch)
tree13f606412a8f6cde3300e4d41b1722ba5f6176e7 /mpfr.texi
parent806f1ccb034f86156538488f6a4be140a851c982 (diff)
downloadmpfr-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.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpfr.texi b/mpfr.texi
index 996edf8ff..743366e6d 100644
--- a/mpfr.texi
+++ b/mpfr.texi
@@ -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})