Random and MC exercises