Anonymous processors with synchronous shared memory: Monte Carlo algorithms