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.

Topic archived. No new replies allowed.