fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. Random random = new Random();
  13. for(int i=0; i<100; i++)
  14. {
  15. int a = random.nextInt(100);
  16. System.out.println(a);
  17.  
  18. }
  19. }
  20. }
Success #stdin #stdout 0.11s 320576KB
stdin
Standard input is empty
stdout
44
46
24
86
40
78
79
63
67
61
86
73
59
81
18
75
31
94
80
81
34
45
39
99
23
65
2
2
28
71
66
36
65
24
45
7
15
33
22
58
55
98
85
7
5
49
60
29
14
63
67
10
29
80
1
1
9
40
40
91
37
5
71
59
91
73
36
68
95
6
72
31
40
49
86
11
79
84
88
14
23
66
98
5
30
81
3
35
26
43
86
82
62
86
24
68
32
39
51
26