4 #include <boost/random/mersenne_twister.hpp> 
    5 #include <boost/random/uniform_smallint.hpp> 
    6 #include <boost/random/variate_generator.hpp> 
   14   boost::mt19937 mt19937(seed);
 
   15   boost::uniform_smallint<> uniform100(0, 99);
 
   16   boost::variate_generator<boost::mt19937, boost::uniform_smallint<> >
 
   17     random100(mt19937, uniform100);
 
   19   for (
size_t i=0; i<
Length; ++i) {
 
   20     const unsigned int u = random100();
 
   22       table[i] = std::make_pair(1,0);
 
   23     else if (u < prob100*2)
 
   24       table[i] = std::make_pair(0,1);
 
   26       table[i] = std::make_pair(0,0);