/*
Returns a random integer between M and N, where M and M are
positive real numbers such that M < N.
*/

#include <iostream>
#include <ctime>
using namespace std;
int main()
{
        float N, M;
        cout << "Enter two positive real numbers (the first less than the second): ";
        cin >> M >> N;
        if (M > 0 && N > 0 && (M < N))
        {
                srand(time(0));
                cout <<  (rand() / float(RAND_MAX)) * (N - M) + M << endl;
        }
        else
                cout << "The numbers you entered are not as requested.\n";

        return 0;
}

