Triangular function

Functions to compute a and simulate from a triangular probability mass function