
14 Jul
2011
14 Jul
'11
4:17 p.m.
AMDG On 07/14/2011 09:04 AM, Karsten Ahnert wrote:
Btw. are there any factory functions for the variate_generator? Something like
make_variate_generator( rng , cauchy )
which could be nicely use when filling containers with random numbers
generate( x.begin() , x.end() , make_variate_generator( rng , cauchy ) );
I considered it, but in 1.47, you should be able to use boost::bind(cauchy, boost::ref(rng)) In Christ, Steven Watanabe