Hi all, I'm trying to create 3 random lists of 4 items each, but such that no two items appear next to one another.

The items are: A, B, C, D.

I want to create 3 lists of these, e.g. (A-B-C-D), (B-C-D-A), (D-A-C-B).

Each of these lists has a random ordering of the four items without replacement.

The KEY thing is that I want the last item of each list to be different from the first item of the next:

(A-B-C-D)-(A-B-C-D) is fine as the last item of the first list is "D", the first item of the next is "A".

(A-B-C-D)-(D-A-B-C) is not fine, as the last item of the first list is "D", and the first item of the next is also "D".

Is there a way to create sets of three lists, with this rule?

Thanks in advance for any suggestions.