SecureRandom for Cryptographically Strong Random Numbers in Java


SecureRandom is a subclass of Random that provides a cryptographically strong random number generator (RNG).

Source Code

SecureRandom random = new SecureRandom();
int secureRandomNumber = random.nextInt();
System.out.println("Secure Random Number: " + secureRandomNumber);
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments