Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int losuj(int a, int b)
- {
- srand(time(nullptr));
- return a + rand() % (b - a + 1);
- }
- int main()
- {
- cout << losuj(10, 20) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement