Generating random values with the Stream API
The Stream API is one of the great features introduced in the JDK 8 release. Most of the time you use the Stream API to operate on values that come from standard collections, files, databases or other data structures. However, sometimes you need to create a new stream from scratch and in some situations, as a…