i want to add an object enemy with random position but i want to limit x(widht) position between 300 to 500? can anybody help.thankyou
in my world class
public void act(){
enemyCount++;
if(enemyCount>59){
getEnemy();
enemyCount=0;
}
}
public void getEnemy(){
addObject(new Enemy(),Greenfoot.getRandomNumber(700),0);
}
