refactoring CD time: provide common function to add random delay which is between 0 and 10% of the origin delay