public class GeometricGenerator { public static void main (String[] argv) { int numTrials = 100000; // Geometric parameter. double p = 0.6; int m = 5; // Limit for the purpose of testing. // Generate regular histogram. double[] counts = new double [m]; for (int n=0; n