$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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:
> 
> AMDG
> 
> On 03/05/2015 12:12 PM, Damian Vicino wrote:
>> Hi, 
>> 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://listarchives.boost.org/mailman/listinfo.cgi/boost