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