I need to take the random array number and turn it into that many balls added to the world. I have not defined any variable and I need help on how to do this for my final project. (Ex. if the array chooses the number 8, 8 balls would be placed in the world)
public void CreateBalls()
{
int num = new int ;
i
num = Greenfoot.getRandomNumber(5-10);
num = Greenfoot.getRandomNumber(5-10);
num = Greenfoot.getRandomNumber(5-10);
num = Greenfoot.getRandomNumber(5-10);
for (int i= 0; i<num.length;i++)
{
}
}