This is a Java simulation implementation of the old Buffon's Needle Drop experiment. It's basically a graphical Monte Carlo simulation of needles being dropped on parallel strips of wood to calculate an estimate of PI.
This will build and run the GUI version
make
make build
OR
javac GraphicSimulator.java
make run_gui
OR
java GraphicSimulator
This is my old University CompSci homework from 2002 (Java has changed since then). While this code is being made public domain, I do ask that you keep your Academic Integrity and not copy this code blindly for your own homework assignment.