Java program to generate random stream of bytes