title: How to simulate an approximation of pi with Numba?
body: <p>I would like to approximate the value of pi using a Monte Carlo method, with different input points (10, 10**1 and so on) and get the code faster with Numba.</p>
  <p>Here as follows, there is a simulation with inputs = 10</p>
  <pre><code>import numba
  from random import *
  import math
  from math import sqrt
  
  @numba.jit(nopython=True)
  def go_fast(pi): 
      inside = 0
      inputs =10
      for i in range(0,inputs):
          x=random()
          y=random()
          if sqrt(x*x+y*y)&lt;=1:
              inside+=1
              pi=4*inside/inputs 
              return (pi)
  
  pi = math.pi      
  go_fast(pi)
  </code></pre>
  <p>I would just like to make sure that the simulation was correctly set since the result get from here seems a bit misleading. Thanks</p>