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
wrote: AMDG
On 03/05/2015 12:12 PM, Damian Vicino wrote:
Hi, I’m using Boost.Rational in a simulation program.
for some experiment, I want to generate some random values between 2 rational numbers. I’m 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