import random
import math
def generate_random_gps(base_log=None, base_lat=None, radius=None):
radius_in_degrees = radius / 111300
u = float(random.uniform(0.0, 1.0))
v = float(random.uniform(0.0, 1.0))
w = radius_in_degrees * math.sqrt(u)
t = 2 * math.pi * v
x = w * math.cos(t)
y = w * math.sin(t)
longitude = y + base_log
latitude = x + base_lat
loga = '%.6f' % longitude
lata = '%.6f' % latitude
return loga, lata
log1, lat1 = generate_random_gps(base_log=120.7, base_lat=30, radius=1000000)
print(log1)