added binomial() to RandomNumberGenerator and finalize() to LatticeSimulator