Shuffle Ranges
Rearrange the values in a range randomly, using std::random_shuffle and std::shuffle.
We'll cover the following...
We can randomly shuffle ranges with std::random_shuffle
and std::shuffle
.
std::random_shuffle
Randomly shuffles the elements in a range.
Press + to interact
void random_shuffle(RanIt first, RanIt last)
Randomly shuffles the elements in the ...