As for N, it could be as large as 179.
For example, I was able to do it for n up to 32 bits:
new Random().nextInt(2^n-1)+1
nextLong() is not possible because I can't pass a value to it and it only generates a random value up to 48-bit.
Aucun commentaire:
Enregistrer un commentaire