Random number

Can someone tell me the best way to get a random number? Every way I use either doesn't work or works bad.

I have a C++11 compiler.
You may want to look into C++11's random library.
Be advised, some compilers may not yet fully implement it.

http://cplusplus.com/reference/random/
http://cplusplus.com/reference/random/random_device/operator%28%29/
Topic archived. No new replies allowed.