> On Mar 3, 2017, at 12:02 PM, Daniel Prager <daniel.a.pra...@gmail.com> wrote:
> On Sat, Mar 4, 2017 at 6:21 AM, John Clements <cleme...@brinckerhoff.org>
> > On Mar 2, 2017, at 3:00 PM, Daniel Prager <daniel.a.pra...@gmail.com> wrote:
> > While we're at it, please allow negative arguments too, to allow for cases
> > such as
> > (random -100 100)
> Well, that’s different; that’s actually changing the implementation. I’m not
> proposing that…
> The implementation looks fine to me. In pre-base.rkt the relevant lines
> should work fine with -ve arguments as long as the inequality constraint
> holds. E.g.
> (+ x (random (- y x))) with x=-100, y=100
> -> (+ -100 (random 200))
Sure, sounds good to me; want to submit a pull request?
(NB: I speak for no one but myself, here.)
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.