enemyHP = 40 + random(20);
that should give you round number.
but if that doesn't work,
enemyHP = Math.round(40 + random(20));
|
Results 1 to 6 of 6
Thread: Random numbersThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |