Get a random number from a range

Based on <http://stackoverflow.com/a/2556282/96588>.
Fuzz tests
Flip expected and actual values according to synopsis
Test empty $1
Test multiple consecutive slashes
Enable test case configuration