adding randomization to minimal example