Boost logo

Boost :

Subject: [boost] How to generate a Bernuolli number under probablity p
From: Barco You (barcojie_at_[hidden])
Date: 2009-03-30 05:14:27


Hi,

I want to randomly generate a Bernuolli number [0, 1],with probability p ~[0
1].
How to do that with boost?

Thanks!

-- 
-------------------------------
Enjoy life!
Barco You

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