/***************************************************************
* Name: Rafael Orta
* Course: Computer Science & Programming
* Class: CS04103 Section: 8 & 9
* Assignment Date: 09/29/19
* File Name: RandomGenerator.cpp
*****************************************************************
* Purpose: This program asks the user to enter an integer, representing
* the upper limit and generates 10 positive random numbers in range.
*****************************************************************/
#include <iostream>
using namespace std;
int main()
{
int value = 0, result = 0;
cout<<"Enter the upper positive limit: ";
cin >> value;
srand (time(NULL));
for (int x = 1; x<11 ; x++){
result = rand () % value + 1;
cout << "\nThe result no.: " << x << " is " << result;
}
return 0;
}