Hi i was wondering if anyone can help me with this i have messed it up and i have just confused my self so can anyone please tell me what is wrong with this?
{ public void spawn()
{ if (Greenfoot.getRandomNumber (600) == 1)
getWorld().addObject(new robot(), 400, 300);
}
}

