summaryrefslogtreecommitdiffstats
path: root/ChangeLog-2009-2015
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-01-29 00:06:19 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-01-29 00:06:19 -0800
commitaeae4fc3dcfbb4b5376515e5660134e79a4f54c3 (patch)
tree41f4802e73ec8e5204382ff88783fb82281087c2 /ChangeLog-2009-2015
parent43f5cf62900830004b53a5df989bad6eece71052 (diff)
downloadtxr-aeae4fc3dcfbb4b5376515e5660134e79a4f54c3.tar.gz
txr-aeae4fc3dcfbb4b5376515e5660134e79a4f54c3.tar.bz2
txr-aeae4fc3dcfbb4b5376515e5660134e79a4f54c3.zip
New function: random-sample.
Implements reservoir sampling. * rand.c (radom_float_impl): New static function, made out of random_float. Returns double, giving us access to the unboxed result (random_float): Now a wrapper around random_float_impl: boxes the result of random_float. (elrd, flrd, random_sample): New static functions. (rand_init): Register random-sample intrinsic. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'ChangeLog-2009-2015')
0 files changed, 0 insertions, 0 deletions