O'Reilly logo
  • Tansu Dasli thinks this is interesting:

SecureRandom randomNumbers = new SecureRandom();

From

Cover of Java® 9 for Programmers, Fourth Edition

Note

Math.random() function does not return stream. and SecureRandom is an expensive randomize way.