okay when i just use:
rand()%130
my random numbers are always the same when i close and open my program unless i restart my computer then they change. I understand this comes from the seed. Can any one tell me how to make the number truly random with getting a number from the internet. Because I read you can use random.org but I cant always be connected to the internet so is there a way to get some random numbers?
#include <iostream>
#include <ctime>
usingnamespace std;
int main ()
{
srand(time(NULL)); // call srand() only once!
// time(0) returns number of seconds since January 1, 1970,
// so random number generator is initialized with a different value each time you call srand
cout <<rand()%130<<endl;
// ...
return 0;
}