Hi everyone,
I am relatively new to C++ and trying to write a program during which I need to generate random numbers with uniform distribution.
On g++'s site - the compiler I am using - (version 4.1.3) it is written that there is a library called "libstdc++" which is built in the g++. I also checked that the libstdc++ v3 package is really installed on my system (i'm using ubuntu linux) - and it is.
Accrodinf to libstc++ doucmentation there is a class in the library called uniform_real, but I cannot define instances of it - I always get an error that "uniform_real" is not defined.
I tried writing "using namespace std::tr1" at the beginning of the program but it didn't help either and I got an error "tr1 is not a valid namespace name"...
So how what I should do to make uniform_available? :)
Maybe there is a simpler way of generating uniform numbers that I don't know of?
Thanks in advance :)