support random sleep