Boost logo

Boost :

From: Neal D. Becker (ndbecker2_at_[hidden])
Date: 2004-11-05 08:03:23

Masaki Nomura wrote:

> Dear all:
> Would anyone let me know the usage of the boost::uniform_int combined with
> the one argument operator() of the variate_generator?

In uniform_int.hpp:
  template<class Engine>
  result_type operator()(Engine& eng)

The paramenter is engine, not an integer. You pass the mersenne_twister rng

Boost list run by bdawes at, gregod at, cpdaniel at, john at