title: wordpress show random post that hasn't been shown earlier
body: <p>I created this really simple function following the documentary of WordPress and as I understood it, this code should be working just fine</p>
  
  <pre><code>query_posts(array('orderby' =&gt; 'rand', 'post__not_in' =&gt; $_SESSION['watched'], 'showposts' =&gt; 1));
  </code></pre>
  
  <p>and the code for the session is no more advanced then this</p>
  
  <pre><code>if(!in_array($post-&gt;ID, $_SESSION['watched'])){
      array_push($_SESSION['watched'],$post-&gt;ID);
  }
  </code></pre>
  
  <p>If you know of any other solution or how to fix this specific one 
  all answers are very much appreciated... If I missed something out just tell me and I'll add that information.</p>