01.
import
java.util.Random;
02.
03.
public
class
Program {
04.
05.
public
static
void
main(String[] args){
06.
07.
Random rn =
new
Random();
08.
int
[] random =
new
int
[
10
];
09.
for
(
int
i =
1
; i <=
10
; i++)
10.
{
11.
random[i-
1
] = rn.nextInt(
10
);
12.
System.out.println(random[i-
1
]);
13.
}
14.
}
15.
}