Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. std::list<uint8> randList;
  2. for (uint8 i = 0; i < 4; i++)
  3. randList.push_back(i);
  4.  
  5. Trinity::Containers::RandomResizeList(randList, 2);
  6.  
  7. for (std::list<uint8>::iterator itr = randList.begin(); itr != randList.end(); ++itr)
  8. {
  9. tpRand[tpCount] = *itr;
  10. tpCount++;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement