Jitter but in groups

Hi there, I am trying to jitter a list of 0 and 1 in order to dispatch my point list,
for now jitter is only able to jitter single values,
if I have 3 groups of values, I want these 3 groups randomly listed in my list, but the number within the group remains the same, is it possible?

Such as
0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 0 0 1
in this case I have two groups: 0 0 1 and 0 1 1, and these two groups are randomly arranged.
cos I do not want triple 1 be arranged together…

Hope I am clear…

Hi,
I think you can do like this. Hope this is what you mean.
BR,

Jitter Groups.gh (7.7 KB)