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