Have a look at my Complex Randomisation and Randomisation without repetition online demos. Trial switching might help too.