longitude = 73.78
file_n = 'random_lat_lon.txt'

def generate_random_data(lat, lon, num_rows, file_name):
    with open(file_name, 'w') as output:
        for _ in range(num_rows):
            hex1 = '%012x' % random.randrange(16 ** 12)
flt = float(random.randint(0, 100))
dec_lat = random.random() / 100
dec_lon = random.random() / 100
output.write('%s %.1f %.6f %.6f \n' % (hex1.lower(), flt, lon + dec_lon, 
    lat + dec_lat))
generate_random_data(latitude, longitude, 5, file_n)
Generate random data with lat-long