Hi,
Basically I am working on a program that uses the rand() function to obviously produce random numbers. These numbers are assigned to various integer variables throughout the program.
The thing is, every time I run the program I get the same random numbers for each variable that calls the function - they never change. It's almost as if they are being stored somewhere in memory. Changing the name of the variable or putting it in a different place in the code will result in a different number generated, but that is hardly practical.
I am just wondering if there is something I am missing with its usage?
Any help is appreciated.