This challenge is to generate a random floating-point number between 2 limits. You may use any language so long as it can be called from the command line, and runs on linux. It must also be able to work with negative numbers.
Due to the comment below: You may use fixed point math to come up with a result in-fact fixed point math is preferable in this case.
Accept a lower and upper limit, no verification required.
- Must be between the 2 specified limits
- Print it out to the console
- or come up with a way to return it to the shell.
$ prog -1 1 -.445
The program would not spit out a result that is not between those 2 limits. And it would be inclusive of the 2 limits
As with all of these challenges the smallest number of bytes wins.