Boost logo

Boost Users :

Subject: [Boost-users] How do I use random_device?
From: Raphael MD (raphamejias_at_[hidden])
Date: 2010-09-06 17:52:55


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net