Didn't find anything on this by searching the forum, so I hope I am not covering old ground...

Does MediaLab (or DirectRT) have any way to do randomization with constraints? E.g., suppose I have two types of items, and I want to present them in random order with the constraint that I never get n (e.g., 2, or 3, or 4) of the same item type in a row? Admittedly the "no consecutive repeat" constraint is very hard to achieve in most task programming systems, but I can usually find a way to do more relaxed constraints. Just wondering how to do that in MediaLab, or even DirectRT for that matter.

Thanks,
-- David McFarlane, Professional Faultfinder