How can I use random library in a class? Can any one with kindness help me?

How can I use random library in a class? Can any one with kindness help me?
I am using boost(version boost_1_37_0) random library in Dev-C++ with gcc.
and the code is:
#include "boost/random/normal_distribution.hpp"
#include

2010/5/11 fmingu
................................. class TransferedSignal{ public: TransferedSignal(){ one(0.0,1.0) ; die(rng, one); };
Try replacing your constructor with this: TransferedSignal() : one(0.0,1.0), die(rng, one) {} Roman Perepelitsa.

在2010-05-11 18:05:00,"Roman Perepelitsa"
participants (2)
-
fmingu
-
Roman Perepelitsa