Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <time.h>
- using namespace std;
- int main()
- {
- srand(time(NULL));//losowania zależne od czasu
- for(int i=0;i<7;i++)
- {
- srand(7);//losowania większe od 7
- cout<<rand()%50+1<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement