Suppose I take an input "8" from the user, I should be able to generate a random BigInteger of length 8 digits. Suppose I take an input of "20", I should be able to generate a random BigInteger of length 20 digits. How can I achieve this?
I have the following code that I have referred from an example.
int SIZE = 512;
p = new BigInteger(SIZE, 15, new Random());
q = new BigInteger(SIZE, 15, new Random());
Can anyone tell me what those arguments mean? Or else can you suggest an easier method to achieve this?