Buffon's needle simulation