While randomizing 3 values, if one value repeat for 2 times, then other two values should repeat for one time

In reply to dave_59:

Hi dave,

Thanks for your response.

we have two scenarios,

The first scenario is consecutive and the result will be like below :

first_randomization → 1,1,2,2,2,3,3, 4,5,5, 6,6,7, 8,8, 9,10,10
second_randomization → 1,1,1,2,2,3,3, 4,4,5, 6,7,7, 8,8, 9,9,10

The second scenario is within a cycle of values and the result will be like below :

first_randomization → 1,2,3,4,8,6,3,7,9,4,5,7,8,4,3,9,10,1,2