#include <iostream>
#include <Algorithm>
#include <string>
#include <vector>
using namespace std;
int main()
{
vector<int> vec = { 8,7,3,2,5,7,8 };
vector<int> vec2 = {0,0,0,0,0,0,0,0,0,0,0,0};
reverse(vec.begin(),vec.end());
reverse_copy(vec.begin(),vec.end(),vec2.begin());
rotate(vec.begin(), vec.begin() + 2,vec.end());
rotate_copy(vec.begin(),vec.begin()+3,vec.end(),vec2.begin());
random_shuffle(vec.begin(),vec.end());
random_shuffle(vec.begin(),vec.end(),rand);
next_permutation(vec.begin(), vec.end());
prev_permutation(vec.begin(),vec.end());
system("pause");
return 0;
}