O'Reilly logo

Java 9 Concurrency Cookbook - Second Edition by Javier Fernández González

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

There's more...

The ThreadLocalRandom class also provides methods to generate long, float, and double numbers, and Boolean values. There are methods that allow you to provide a number as a parameter to generate random numbers between zero and that number. The other methods allow you to provide two parameters to generate random numbers between these numbers.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required