Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Adeline Delgleize
- Student ID 0515277
- February 20, 2017
- Journal 3B
- Random Numbers*/
- #include <iostream>
- #include <ctime>
- using namespace std;
- int main()
- {
- int min, max;
- srand((unsigned int) time(0));
- cout << "Enter your min value : " << endl;
- cin >> min;
- cout << "Enter your max value : " << endl;
- cin >> max;
- for (int j = 0; j < 10; j++)
- {
- for (int i = 0; i < 10; i++)
- {
- int randRange = (rand() % (1 + max - min) + min);
- cout << randRange << "\t";
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement