Did you check out the stuff on the "autostart" function in the manual? That's one way to do it (basically generate assignment lists ahead of time that MediaLab can read from). In v2006 you can also write a custom script, exe or batch file and run a ML study directly (no initial interface) with subject and condition arguments--that would give you full control over assignment.