Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int a = 30;
- int b = 40;
- srand( time( NULL ) );
- cout << "Wygenerwowane liczby pseudolosowe to: "<<endl;
- for(int i=0; i!=5; i++)
- {
- cout<<a+rand()%(b-a+1)<<" ";
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment