Can anyone help with a random list question. I am looking for a solution that uses the random function but eliminates the duplication of values next to one another. In the (green) panel the solution at items 4, 5, 10, 11, 17 & 18 have the same value as the one next to it.

I would like a different value at each occurrence. Is this possible?

Thanks in advance for any help.

random list.gh (7.9 KB)