Re: Random Number Qt MacOs
:crying:
Now i "reset" the qsrand, and for any time i start my application, the random number is not the last one. Thats ok.
But in the same time the application is running, if i want to get a new Random number several times, it returns always the same number.
How can i random the random number process to return always different numbers?
Is it possible?
:confused:
Re: Random Number Qt MacOs
Hi,
You have to call "srand" only the first time that your application starts. Then every call to "rand" will get you different random values.