Pure Programmer
Blue Matrix


Cluster Map

Project: Random Floats

Write a program to generate a random list of floating point values. The program should accept three values on the command line: minimum value, maximum value and the number of floats to generate. The maximum value need not actually occur in the list but serves as an upper limit to the values generated. The floats should be printed one per line.

Output
$ perl RandomFloats.pl 0 10 20 "rand" is not exported by the Math::Trig module Can't continue after import errors at RandomFloats.pl line 10. BEGIN failed--compilation aborted at RandomFloats.pl line 10.

Solution