How to do the same operation until it reaches one condition
<p>How to do the same operation until it reaches one condition?
For Example:</p>

<pre><code>&lt;?php
  $n = rand(5,157);
  if ($n=='63'){
    echo 'ok';
  } else {
    //* another random, until rand () will give 63  *//
  }
?&gt;
</code></pre>

<p>how can I fix this? Thanks in advance!</p>
