Subject: Re: [boost] [random][rational] Is there any standard way to generate a random rationals?
From: Damian Vicino (damian.vicino_at_[hidden])
Date: 2015-03-05 16:39:46
I was thinking the same approach.
But it is necessary to study how the selection affects the distribution.
I was hoping someone already made that work :(
If I end up doing it, is there any interest in including something like that in the random library?
> On Mar 5, 2015, at 8:24 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> On 03/05/2015 12:12 PM, Damian Vicino wrote:
>> Im using Boost.Rational in a simulation program.
>> for some experiment, I want to generate some random values between 2 rational numbers.
>> Im wondering if someone already worked on this.
> I'm not aware of anything.
> You could try something like:
> - Find a denominator somehow
> - Then calculate a random numerator
> In Christ,
> Steven Watanabe
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk