fork download
  1. import java.util.Random;
  2.  
  3. class GerarOrganizar {
  4. public static void main(String[] args) {
  5. int[] numerosAleatorios = new int[100];
  6. Random geradorRandomico = new Random();
  7. for(int i = 0; i < 100; i++) {
  8. numerosAleatorios[i] = geradorRandomico.nextInt(250);
  9. System.out.println(numerosAleatorios[i]); //deixei para vocĂȘ ver funcionando
  10. }
  11. }
  12. }
  13.  
  14. //https://pt.stackoverflow.com/q/35290/101
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
49
69
112
129
223
77
5
14
243
96
150
74
3
201
140
81
181
28
79
117
159
230
21
199
183
157
1
100
143
133
218
203
193
217
244
201
174
155
133
117
191
75
120
202
44
117
152
235
80
32
200
10
12
72
106
87
92
1
38
136
168
227
185
154
143
217
8
153
176
219
17
238
81
234
209
205
45
157
8
65
56
234
99
13
202
7
0
218
183
6
114
163
55
38
11
186
163
196
177
188