utility script to generate a truncated exponential.