Changeset 9055 for src


Ignore:
Timestamp:
Apr 15, 2011, 7:10:38 PM (14 years ago)
Author:
rick
Message:

Actually insert values in a valid range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/random_db_init.py

    r9047 r9055  
    3333  sql_insert_values = []
    3434  for i in range(0,count):
    35     latitude = random.randint(140252,167846)
    36     longitude = random.randint(459019,514637)
     35    latitude = 52 + random.uniform(0.140252,0.167846)
     36    longitude = 4 + random.uniform(0.459019,0.514637)
    3737    signal = random.randint(0,100)
    3838    # This takes roughly 1 minute on 10000 items which logically cause it does
Note: See TracChangeset for help on using the changeset viewer.