format the random testing