Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can i get a real random number?

Hi, I've used the RNG function but it doesn't give me a real random value. I get the same values every time I execute my program. The code I use is the next one:

RNG rng;
int a1;
a1 = rng.uniform((double)0, (double)1)*512;

Can anybody help me?

Thanks in advance