Do the Even questions from section 10.3.9.

(It wouldn't hurt if you studied the answers to the odd questions as well.)

In addition, do this problem:

  1. Redo #10 from 10.2.7 to require the 'n' argument but support an optional second argument which will specify a lower-bound on the range of random numbers. Your new version should behave as specified when only one parameter is given. When the second parameter is given (let's call it 'm'), too, you should generate a random value between 'm' and 'n' inclusive. If 'm' is larger than 'n', reverse that. Make your expanded code as simple and clean as possible.

    Here are a few example calls:

        mGenRandom 11    ; get a random value between 0 and 10
    
        mGenRandom 4, 2   ; get a random value between 2 and 4
    
        mGenRandom -7, 15   ; get a random value between -7 and 15
    


This assignment is Level 3.