For random testing situations, subbing would be your best bet.