adding new randomizing method to improve offline randomization