random numbers from to C++ : I want it to display random numbers from to the value it writes but something is not working properly there is code

    #include <iostream>
    #include <cstdlib>
    #include <ctime>
    
    using namespace std;
    
    int draw(int from_to, int to_from)
    {
        return (rand()%to_from)+from_to;
    }
    int main()
    {
        srand(time(NULL));
        int start,stop;
        cout << "First number: " << endl;
        cin >> start;
        cout << "Last number: " << endl;
        cin >> stop;
        int x=20;
        do
        {
            cout << draw(start,stop) << endl;
            x--;
        } while(x>0);
    
        return 0;
    }

