// Use a fixed stopping rule, that stops after 20 measurements.
// More sophisticated stopping rules may also be used.
// A simulation sampling rule is a combination of allocation
// and stopping rule.
StoppingRule stop = new FixedStop(20);
// Initialize a random number generator
Random rnd;
try { rnd = new Random(); }
catch(Exception e) {