Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- #include <windows.h>
- using namespace std;
- int main()
- {
- int a;
- srand(time(NULL));
- for(;;)
- {
- a = rand()%2001-1000;
- cout << a <<" ";
- Sleep(1000);
- if(a<201 && a>99)
- return 0;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement