fork(20) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.math.*;
  4.  
  5. class Main
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Random rnd = new Random(123);
  10. BigInteger tenPow30 = new BigInteger("10").pow(30);
  11. BigInteger min = new BigInteger("10").pow(29);
  12. do {
  13. r = new BigInteger(100, rnd).remainder(tenPow30);
  14. } while (r.compareTo(min) < 0);
  15. System.out.println(r);
  16. }
  17. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
104592770991133245451075845546