21 Jul
2008
21 Jul
'08
3:47 p.m.
Hi all, I am currently using boost::random, and I wonder how it is possible to get uniform random numbers on a union of two intervalls. For instance, I would like to generate uniform_real numbers in the intervall [-a;-b]U[b;a]. How can I do such a task ? Best regards, Olivier Tournaire