Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"It keeps on generating the same number. Why?"

you will have to seed the RNG, else it starts with ~0 for seed all the time.

RNG rng(getTickCount());