fork download
  1. import java.math.BigInteger;
  2. import java.util.Random;
  3.  
  4. public class Main {
  5. public static void main(String[] args) {
  6. Random r = new Random();
  7. int bitsCount = 36;
  8. BigInteger p = new BigInteger(bitsCount, 1000, r);
  9.  
  10. System.out.println(p);
  11. p = new BigInteger(bitsCount, 1000, r);
  12. System.out.println(p);
  13. }
  14. }
  15.  
Success #stdin #stdout 0.09s 380544KB
stdin
Standard input is empty
stdout
38859757511
59483879069