for ループの一般的な要点がわかりました。イニシャライザに 2 つの変数を追加する方法を知りたいです。また、カウンターとランダムを同時にカウントしたいです。ランダムに印刷したいが、同じ数字を30個印刷したくない
public class forLoop {
public static void main(String[] args) {
int random = (int) (Math.random() *50) +25;
for(int counter = 0; counter < 30; counter++){
System.out.println(random);
}
}
}