public void act()
{
A=Greenfoot.getRandomNumber(1000);
if(A <= 20)
{
this.getWorld().addObject(new Auto7(), 400,450);
}
}
if(A > 20 && A < 40)
{
Auto2 a2 = new Auto2();
addObject(a2, 400,450);
}