writeup for randomization