How do I make this code increase over time?
private void spawnAlien() { int rand = Greenfoot.getRandomNumber(150); if (rand >=3) return; if (rand == 0) addObject(new Alien(), 870, 453); }