import java.math.BigInteger;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;

public class TestBigIntegerRandom {

	public static void main(String[] args) throws NoSuchAlgorithmException {
		SecureRandom sr = SecureRandom.getInstance("SHA1PRNG"); 
		int nBits = 4096; 
		for (int i = 0; i < 1000; ++i) { 
			// biased towards high numbers. never chooses below a high limit 
			BigInteger number = new BigInteger(nBits, sr); 
			System.out.println(number.toString()); 

		}

	}
}