Randomize modules and order