An Introduction to Computer Simulation