fork download
  1. class main
  2. {
  3.  
  4. public static void main(String[] args)
  5. {
  6. for(int i = 0; i<10; i++ )
  7. {
  8.  
  9. int random = (int )(Math.random() * 9 + 1);
  10. System.out.println(random);
  11. System.out.println(i);
  12.  
  13. }
  14. }
  15.  
  16. }
Success #stdin #stdout 0.11s 320512KB
stdin
Standard input is empty
stdout
1
0
3
1
8
2
2
3
1
4
9
5
8
6
4
7
7
8
3
9