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