threshold randomized