Minor sleepRandom improvements