Rand on sync Idem wakeRand but on sync. Chooses by random a number between min and max on sync and stays…