Random number generator is a convenient utility for creating password reset tokens, session strings, and unique identifiers.
Add a Random utility to your project.
Each method in the utility creates BigInteger value using Java's cryptographically strong SecureRandom generator. Number of bits are specified to generate some random number, which is then converted to a base (32 or 10 in the example below).
Browse related articles