I have items, must be mix randomly, the result must be an array which contain only unique mixed items!
Details:
I have 5 item group with different number of items.
Group 1: rS1, rS2, rS3, rS4, rS5
Group 2: rA1, rA2, rA3, rA4, rA5, rA6, rA7, rA8, rA9
Group 3: rB1, rB2, rB3, rB4, rB5, rB6, rB7, rB8, rB9
Group 4: rC1, rC2, rC3, rC4, rC5, rC6
Group 5: rU1, rU2, rU3, rU4, rU5, rU6, rU7, rU8, rU9, rU10
Each item from the result must be contain 26 items:
1 item from "Group 1" + 9 items from "Group 2" + 9 items from "Group 3" + 6 items from "Group 4" + 1 item from "Group 5"
Examples:
- rS3,rA4,rA1,rA5,rA8,rA2,rA9,rA3,rA7,rA6,rB8,rB2,rB7,rB4,rB1,rB6,rB3,rB5,rB9,rC4,rC1,rC3,rC5,rC2,rC6,rU4
- rS5,rA3,rA5,rA2,rA1,rA4,rA7,rA8,rA6,rA9,rB5,rB1,rB3,rB6,rB2,rB9,rB7,rB4,rB8,rC2,rC1,rC6,rC4,rC3,rC5,rU9
- rS2,rA8,rA5,rA1,rA4,rA7,rA3,rA9,rA2,rA6,rB2,rB9,rB4,rB6,rB3,rB1,rB5,rB7,rB8,rC5,rC6,rC1,rC2,rC4,rC3,rU5
Once again: The result array must contain different (unique) 26 item sequences in all possible combination. The result array will bi inserted to a mysql table, 1 item = 1 row/field.