
6 Sep
2010
6 Sep
'10
9:52 p.m.
Hi everyone! I need to use random_device for generating non deterministic random numbers, but I don't know how to use this class, it's very confusing, I don't understand it. I'm using linux. My example code: using namespace std; #include <iostream> #include <string> #include <boost/timer.hpp> #include <boost/nondet_random.hpp> int main() { boost::random_device::result_type min(1); boost::random_device::result_type max(60); boost::random_device dev; } Thanks for help.