For each multiple of 10 and 50 do something
<p>I am in Java, and i'd like to know how I could do that. Here a small exemple I have so far but I have to make the same things with 50. So here comes the problems.</p>

<pre><code>if(taskCompleted/10 == Math.round(Math.random()){
taskPoints = 20;
} else if(taskCompleted/50 == Math.round(Math.random()){
taskPoints = 60;
}
</code></pre>

<p>Otherwise I can explain it in word :</p>

<p>Each time taskCompleted is equals to a multiple of 10 (10,20,30,40 etc...), taskPoints equals 20 otherwise if each time taskCompleted is equals to a multiple of 50 (50,100,150,200) then taskPoints equals 60.</p>

<p>I hope you understand what I wanna do.</p>
