title: It doesn't sleep as expected
body: <p>Considering that this prints something like</p>
  
  <pre><code>[E] [F] [A] [C] [A] 
  [B] [F] [B] [B] [D] 
  [C] [C] [C] [C] [C]
  </code></pre>
  
  <p>The following wait 5 seconds and print a row instead of executing each <code>[...]</code> and wait 1 second, why?</p>
  
  <pre><code>    for (int i = 0; i &lt;= 2; i++) {
          for (int j = 0; j &lt;= 4; j++) {
              int a = randomInt(0, 5);
              sleep(1);
              cout &lt;&lt; "[" &lt;&lt; allowed[a] &lt;&lt; "] ";
              usciti[i][j] = allowed[a];
          }
          cout &lt;&lt; endl;
      }
  </code></pre>