Java tutorial
import java.math.BigInteger; import java.util.Random; public class Main { public static void main(String[] args) { Random randomGenerator = new Random(); BigInteger randomInteger = new BigInteger(1024, randomGenerator); System.out.println(randomInteger); } }