Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h> /* srand, rand */
- #include <time.h> /* time */
- srand(time(NULL));
- list<int> integerList;
- for(int i = 0; i < 20; i++) {
- integerList.push_back(rand() % 10 + 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement