Some C++ resources:
Stand-alone C++ code for computing special functions:
- Error function
- Phi (standard normal CDF)
- Phi inverse
- Gamma function
- Log gamma
- Log factorial
- log(1 + x) (why?)
- exp(x) – 1 (why?)
Random number generation from various distributions with C++