Boost logo

Boost :

Subject: Re: [boost] [random][rational] Is there any standard way to generate a random rationals?
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2015-03-10 06:14:03


On 05-03-2015 22:39, Damian Vicino wrote:
> 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 :(
>

Given a random double in some interval, would it be possible to
calculate the nearest rational number?

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk