As you can see I have selected co-ordinates where the mushrooms should spawn each time I restart. How would I go about making these mushrooms change locations randomly each time I press the reset button?
public capworld()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(800, 800, 1);
outer_ring();
inner_ring();
addObject(new car(), 200,150);
addObject(new mushroom(), 200,400);
addObject(new mushroom(), 370,170);
addObject(new mushroom(), 500,150);
addObject(new mushroom(), 650,650);
}
