I am attempting to randomize a set of integers (1:12) and there are twelve of each number, for a total of 144 numbers. Basically I am trying to figure out if there is a way to randomize the numbers so that each number follows a previous number the same amount of times as other numbers (i this case 12 would follow 11 once, 12 would follow 10 once, 3 would follow 12 once) and so on.
Is there a somewhat easy way to go about this issue in matlab?
Best Answer