ok y is it that when i try do do something like this:


#include <iostream>
#include <string>

using namespace std;

int rand();

int main ()
{
cout << rand();

return 0;
}

it outputs the same number every time? i dont get it. i thought it was supposed to be random.