random question in game
<p>i am working in a game that can display a random question to user ,all work is going well,but the problem is that there is a probability that a same user can get the same question at same session,i dont want it, here is my code</p>

<pre><code>$runs     = $_REQUEST['runs'];
$query    = "SELECT max(id) FROM question$runs";
$result1  = db_execute($query);
$ans      = mysql_fetch_array($result1);
$max      = $ans['0'];
$rand_no  = mt_rand(0,$max);
$query1   = "SELECT * FROM question$runs WHERE id='$rand_no'";
</code></pre>

<p>now how can i avoid the same question from a same user at same session
any idea?plz share thanQ all</p>
