
1 Apr
2009
1 Apr
'09
1:18 a.m.
Hi Steven, This way: g.distribution() = boost::bernoulli_distribution<>(p); works successfully!!! Many thanks! On Wed, Apr 1, 2009 at 9:09 AM, Steven Watanabe <watanabesj@gmail.com>wrote:
AMDG
Barco You wrote:
Hi Henning,
Thanks for your reply! but, g = generator(rng, boost::bernoulli_distribution<>(p));
Try g.distribution() = boost::bernoulli_distribution<>(p); or just construct the variate generator whenever you need a random number: std::cout << generator(rng, boost::bernoulli_distribution<>(p))() << std::endl;
In Christ, Steven Watanabe
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- ------------------------------- Enjoy life! Barco You