Refactored Random to SecureRandom to achieve better security in case someone uses this class for more-or-less serious purposes.