i figure out that srand() and rand() are not quite good in creating a random number.
for:
while(true){
int x = 0;
srand((unsigned)x);
int r = random();
cout<<r<<endl;
}
It gives back the same number.
Am I doing something wrong?
If not, is there anywhere that we can create our own function that call for a random number within a range, say 0 - 28?:-/