Hi,
here two rather easy options.
1. As it is absolutely irrelevant, which random number you assign to your groups, you may assign
G1: randomnumber==1
G2: randomnumber==2
G3: randomnumber=
G4: randomnumber==8
G5: randomnumber==4
G6: randomnumber==5
G7: randomnumber==6
G8: randomnumber==9
G9: randomnumber==7
And to close these two groups, just change your creation of the random number to (1-7)
2. Assign "randomnumber==0" to these two groups.
Add "randomnumber==4" and "randomnumber==8" to other groups, like
G1: randomnumber==1
G2: randomnumber==2 or randomnumber==4
G3: randomnumber=
G4: randomnumber==0
G5: randomnumber==4
G6: randomnumber==5 or randomnumber==8
G7: randomnumber==6
G8: randomnumber==0
G9: randomnumber==7
Joffm