Add triangular distribution random number generator

I needed random numbers from a triangular distribution, so I decided to add in the functionality. The RNG converts a uniform random variable to a triangular random variable using the formula from http://en.wikipedia.org/wiki/Triangular_distribution#Generating_Triangular-distributed_random_variates.