Refreshing random in an if case
<p>I generate two random int numbers (a and b). If (a%b)==0 that I want to go on, else I want to change the randoms by refreshing. I give an example code:</p>

<pre><code>int a = //random;
int b = //random;
if ((a%b)==0) {
   // do something
} else {
   // I want to change a and b and do that if case again.
}
</code></pre>
