public static IntStream generate (IntSupplier s)

Returns an infinite sequential unordered stream where each element is generated by the provided IntSupplier. This is suitable for generating constant streams, streams of random elements, etc.

Parameters:
s    the IntSupplier for generated elements

Returns:  a new infinite sequential unordered IntStream