add monte_carlo mod

This will be a port of `MonteCarloUnit`. It need not be a class any
more, because Rust has a thread-local rng. No need to do it explicitly
any more.