change random range and interval time