Random selection from different sets of numbers

Dear Friends,
I am a newcomer of C++ programming, I have a problem:
I have 9 sets of numbers that each of them include different numbers for example:
set 1: 10 11 12
set 2: 21 22 23 24 25
set 3: 34 35 36
set 4: 40 41 42 43 44 45 46 45 47 48 49
set 5: 50 51
set 6: 60 61 62 63
set 7: 71 72 73 74
set 8: 81
set 9: 91 92 93

now, I want to create for example 20 sets that include one non repeating of elements of each set randomly (and if it is possible without repeating), such as:
newset 1: 11 22 34 40 50 63 72 81 92
newset 2: 10 21 36 44 51 62 71 81 93
newset 3: 12 25 35 49 51 61 73 81 91
newset 4: 10 24 35 47 50 60 74 81 92
..
..
up to 20 or more as it is possible. Please note that newset1#newset2 or other newsets.
Is there anyone can help me?
Also, I wrote a code that read each set data from an input txt file, and record them as vector and also 2D array, but I do not know what should I do for continuing the code!
Thanks a lot
Morteza
Last edited on
Topic archived. No new replies allowed.