How do you pick a random costume?
int costume = Greenfoot.getRandomNumber(the number of costumes you have);
if(costume==1)
{
setCostume(a costume);
}
if(costume==2)
{
setCostume(a costume)
}String [] costumes = { "image1.png", "image2.png", "image3.png" );
...
int index = Greenfoot.getRandomNumber(costumes.length);
setImage(costumes[index]);