Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <stdlib.h> /* srand, rand */
  2. #include <time.h> /* time */
  3.  
  4. srand(time(NULL));
  5. list<int> integerList;
  6. for(int i = 0; i < 20; i++) {
  7. integerList.push_back(rand() % 10 + 1);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement