A distribution-compensable methodology is pro-posed for calibrating the non-ideality of digital-to-time converters by adjusting the given distribution of random number generators. For generating every cycle in built-in communication test, a fast and area-efficient piecewise-line random number generator is developed. The speedup and reduction can be obviously estimated from the proposed algorithms. The effectiveness and efficiency of compensation is clearly validated by nine examples with different bench distributions and bench converters.