Random Generator for Scala

Random number generator is a convenient utility for creating password reset tokens, session strings, and unique identifiers.


Random Utility

Add a Random utility to your project.

How Random Utility Works

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).

Usage Example



  • Photo by LineDrop

Related Articles

Browse related articles