Hi guys, I have an issue with a for loop and a random number.
for (int i= 0; i < 10; i++) {
if (i == 4) {
i=i+0;
}
else {
addObject (new Bom(), i, 5);
}
}
I want to replace the for with a random number between 2 and 9. I can't get it to work with the Greenfoot.getRandomNumber. Thank for reading this and I hope someone can help me.

