Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
C++
Bitset
Class
Console
Data Structure
Data Type
Deque
Development
File
Function
Generic
Language
List
Map Multimap
Overload
Pointer
Qt
Queue Stack
Set Multiset
STL Algorithms Binary search
STL Algorithms Heap
STL Algorithms Helper
STL Algorithms Iterator
STL Algorithms Merge
STL Algorithms Min Max
STL Algorithms Modifying sequence operations
STL Algorithms Non modifying sequence operations
STL Algorithms Sorting
STL Basics
String
Valarray
Vector
random_shuffle « STL Algorithms Modifying sequence operations « C++
C++
STL Algorithms Modifying sequence operations
random_shuffle
1.
std::random_shuffle a vector
2.
Use back_insert_iterator to insert element into a vector
3.
Use random_shuffle to shuffle all elements randomly
4.
Use random_shuffle to shuffle elements with self-written random number generator
5.
Randomize elements in a vector with random_shuffle(scores.begin(), scores.end());