title: Random int in C++
body: <p>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:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
      cout &lt;&lt; "I got a number in my mind... can you guess it?" &lt;&lt; endl;
      int random;
      random = rand() % 20 + 1;
  
      cout &lt;&lt; random &lt;&lt; endl;
      system("pause");
      return 0;
  }
  </code></pre>
  
  <p>screenshot : <a href="http://tinyurl.com/n49hn3j" rel="nofollow">http://tinyurl.com/n49hn3j</a></p>