import hep.aida.*;
import java.util.Random;

public class Example1 {

  public static void main(String[] args){
    IAnalysisFactory af = IAnalysisFactory.create();
    IHistogramFactory hf = af.createHistogramFactory(null);
    IHistogram1D h = hf.createHistogram1D("Example1", 50, -3, 3);

    Random r = new Random(1234567);
    for (int i = 0; i < 10000; i++) {
      h.fill(r.nextGaussian());
    }

    IPlotterFactory pf = af.createPlotterFactory();
    IPlotter plotter = pf.create();
    plotter.currentRegion().plot(h);
    plotter.show();
  }
}
