Reading pseudorandom numbers

6.10 LPAR mode z/VM guest KVM guest

The PRNG device is read-only. Use the read function, cat program, or dd program to obtain random numbers.

Example

In this example bs specifies the block size in bytes for transfer, and count specifies the number of records with block size. The bytes are written to the output file.
# dd if=/dev/prandom of=<output file name> bs=<xxxx> count=<nnnn>