/ipt-needle

BUT FIT IPT Course - compute the π number based on the Buffon's Needle problem

Primary LanguagePythonMIT LicenseMIT

ipt-needle

BUT FIT IPT Course - compute the π number based on the Buffon's Needle problem

Usage: python main.py 1 2 10000

Args:

  • first: length of the needle
  • second: distance between two lines (greater than first)
  • third: number of tries (int)