Randomizing stimuli in latin square order

Hi, everyone!
I have 7 conditions with different number of stimuli in each one. How can I present these stimuli in latin square order (or any other way of quasi-randomizing)?