Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #include <ctime>
- int main()
- {
- int rdmNum;
- /*int seed;
- seed = time(0);
- srand(seed);*/ //Optional
- for (int i = 0; i < 30; i++)
- {
- rdmNum = 1 + rand() & 1000;
- cout << rdmNum << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement