Hi can anyone help me with my code below. I am trying to implement a random number into the iterator below it, where the number '100' would be a random number between 1 and 100.
any help would be great thanks
Daniel
Random randomGenerator = new Random();
for (int idx = 1; idx <= 100; ++idx){
int randomInt = randomGenerator.nextInt(100);
}
Iterator<Rectangle> iter = clouds.iterator();
while(iter.hasNext()) {
Rectangle cloud = iter.next();
//this effects the speed of downward movement
cloud.x -= 100 * Gdx.graphics.getDeltaTime();
if(cloud.x + 80 < 0) iter.remove();
}