Program
import java.util.*;
class RandomNum {
public static void main(String[] args){
int c;
Random t = new Random();
// random integers in [0,100]
for( c=1; c<=5; c++){
System.out.println(t.nextInt(100));
}
}
}
Answer:
RandomNum
90
54
14
29
52
0 Comments