fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.util.stream.*;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
  10. {
  11. public static void main (String[] args) throws java.lang.Exception
  12. {
  13. Stream.generate(() -> new Random()).limit(10).map(
  14. r -> r.ints(10, 0, 10).mapToObj(Integer::toString).collect(Collectors.joining())
  15. ).forEach(System.out::println);
  16. }
  17. }
Success #stdin #stdout 0.14s 4386816KB
stdin
Standard input is empty
stdout
1582882360
9811110255
2560642163
9393545965
2720358874
9181826902
0828673913
4133273292
5525904983
4840909435