Pure Programmer
Blue Matrix


Cluster Map

Project: Random Bytes

Write a program to generate a random stream of bytes. The program should accept three values on the command line: minimum byte value, maximum byte value and the number of bytes to generate. Include assertions to check that the command line min and max are in the range 0-255.

Output
$ perl RandomBytes.pl 32 126 100 "rand" is not exported by the Math::Trig module Can't continue after import errors at RandomBytes.pl line 10. BEGIN failed--compilation aborted at RandomBytes.pl line 10. $ perl RandomBytes.pl 48 57 100 "rand" is not exported by the Math::Trig module Can't continue after import errors at RandomBytes.pl line 10. BEGIN failed--compilation aborted at RandomBytes.pl line 10.

Solution