




'''simple docstring'''
import random






class        SCREAMING_SNAKE_CASE:

       def __init__(    self					,		lowerCamelCase__					,		lowerCamelCase__     )    ->					None:

           """simple docstring"""



           __lowercase							=						x
           __lowercase							=						y

       def     snake_case__			(    self     )    ->					bool:

           """simple docstring"""



           return (self.x**2 + self.y**2) <= 1




       @classmethod
       def     snake_case__			(    cls     )    ->					Tuple:

           """simple docstring"""



           return cls(x=random.random()					,		y=random.random()     )

def 				snake_case_  (   a__		:	int			):



    """simple docstring"""




    if number_of_simulations < 1:
        raise ValueError("""At least one simulation is necessary to estimate PI."""			)

    __lowercase							=						0
    for _ in range(__A			):
        __lowercase							=						Point.random_unit_square()

        if random_point.is_in_unit_circle():
            number_in_unit_circle += 1

    return 4 * number_in_unit_circle / number_of_simulations


if __name__ == "__main__":
  # import doctest

  # doctest.testmod()
  from math import pi

  A							:      Tuple 	=       """Please enter the desired number of Monte Carlo simulations: """
  A							:      Any 	=       estimate_pi(int(input(prompt).strip()))
  print(F"""An estimate of PI is {my_pi} with an error of {abs(my_pi - pi)}""")







from .prime_check import Test

Test()


