From 76b97f2c904c4e52d11e89406a9491aef77ef438 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 25 Oct 2021 07:29:11 -0700 Subject: random: new function random-float-incl. This function includes the 1.0 value excluded by random-float. * rand.c (random_float_incl): New static function. (rand_init): Register random_float_incl intrinsic. * txr.1: Document, and add discussion about uniformity requirements and what they mean and do not mean. * stdlib/doc-syms.tl: Updated. --- stdlib/doc-syms.tl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stdlib/doc-syms.tl') diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl index 295471c2..38f5dc7b 100644 --- a/stdlib/doc-syms.tl +++ b/stdlib/doc-syms.tl @@ -1530,7 +1530,8 @@ ("random" "N-03A57C86") ("random-buf" "N-00161346") ("random-fixnum" "N-03A57C86") - ("random-float" "N-01572D27") + ("random-float" "N-0336F715") + ("random-float-inc" "N-0336F715") ("random-state-get-vec" "N-005C0F98") ("random-state-p" "N-00C9A749") ("range" "N-033BE5A1") -- cgit v1.2.3