def gps_noise_rng(radius):
 noise = gauss(0, (radius / 3.0))
 noise = min(max((- radius), noise), radius)
 return noise

def gps_noise_rng ( radius ) : noise = gauss ( 0 , ( radius / 3.0 ) ) noise = min ( max ( ( - radius ) , noise ) , radius ) return noise
simulates gps noise .