- Timestamp:
- Apr 15, 2011, 7:10:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/random_db_init.py
r9047 r9055 33 33 sql_insert_values = [] 34 34 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) 37 37 signal = random.randint(0,100) 38 38 # This takes roughly 1 minute on 10000 items which logically cause it does
Note:
See TracChangeset
for help on using the changeset viewer.