dist_truncated function

Truncate a distribution