Honestly, for anything numeric, I would rather you use boost::random. The standard `rand` function is a terrible pseudorandom number generator even for basic monte carlo simulations.