Fixed up decompose_random.