It generates unique random number within given range.