chibi-scheme/lib/srfi/27/constructors.scm
Alex Shinn 44a6c530d9 EVAL save/restores the current exception handler.
It doesn't really make sense for an exception to pass
outside of EVAL.  Fixes issue #17.
2009-12-28 23:18:04 +09:00

10 lines
321 B
Scheme

;; constructors.scm -- random function constructors
;; Copyright (c) 2009 Alex Shinn. All rights reserved.
;; BSD-style license: http://synthcode.com/license.txt
(define (random-source-make-integers rs)
(lambda (n) (%random-integer rs n)))
(define (random-source-make-reals rs . o)
(lambda () (%random-real rs)))