Answer the question
In order to leave comments, you need to log in
How to shuffle vector?
There is a vector, for example:
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<string> array { "a", "b", "c", "d", "e"};
}
import random
array = {'a', 'b', 'c', 'd', 'e'}
random.shuffle(array)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question