I just wrotte the code below in C++, but I have one problem: the random number that cames it's always the same..!! Here's my code and a screenshot:
#include <iostream>
using namespace std;
int main() {
cout << "I got a number in my mind... can you guess it?" << endl;
int random;
random = rand() % 20 + 1;
cout << random << endl;
system("pause");
return 0;
}
screenshot : http://tinyurl.com/n49hn3j