fork download
  1. import java.util.Random;
  2.  
  3. class Example
  4. {
  5. public static void main (String[] args) throws java.lang.Exception
  6. {
  7. Random r = new Random();
  8.  
  9. // Let's do 10 of them
  10. for (int n = 0; n < 10; ++n ) {
  11. // Let's do 30 - 3000
  12. int value = (r.nextInt(100) + 1) * 30;
  13. System.out.println(value);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.04s 711168KB
stdin
Standard input is empty
stdout
2730
2040
870
2370
1440
2880
180
2850
2370
1350