# Random numbers write to file

 

import random

 

xUL = 373362.31

yUL = 43695559.51

xLR = 622395.55

yLR = 4038425.26

 

f = open(r'H:\TEMP\temsys\RandomNums3.txt', 'w')

f.writelines(['%9.2f %14.2f\n' % (random.uniform(xUL,xLR), random.uniform(yLR, yUL)) for _ in range(35)])

f.close()

 

'''

450742.25    15904885.61

408010.58    17529876.24

509410.49    31210428.63

609751.61    28548191.36

496748.10    13634931.19

401620.04    18545059.27

472709.78    19027787.41

388559.39    24144909.11

524567.31    18631123.05

511758.70    39517663.45

559232.86    31888414.01

577184.84    36048478.83

538282.15    41778899.44

575004.09    40834225.77

418927.25    39668937.84

446056.59    26110321.81

564327.41    40028920.85

458790.95    28482606.87

590868.35    35761601.16

481911.34    41913668.32

505697.32    21037935.54

381583.02    15354347.66

502199.27    11899501.26

523998.14    14997468.29

605398.32     5807420.47

378222.15    28319745.34

551317.59    22916032.06

571725.33    10374941.01

457461.04    10086961.30

392562.88    36584815.13

586239.23    27968528.25

495694.22    42622551.50

611835.05    11171659.01

448000.78     9722482.04

409788.47    18431800.97

'''

 

'''

import random

 

print "\nPlease enter the upper left coordinates\n"

xUL = float(raw_input("enter your x value: "))

yUL = float(raw_input("enter you y value: "))

 

print "\nPlease enter the lower right coordinates\n"

xLR = float(raw_input("enter your x value: "))

yLR = float(raw_input("enter your y value: "))

 

 

f = open(r'H:\TEMP\temsys\RandomNums4.txt', 'w')

 

 

f.writelines(['%9.2f%14.2f\n' % (random.uniform(xUL,xLR),random.uniform (yLR,yUL))for _ in range(35)])

 

 

f.close()

 

 

raw_input("\nPress Enter to exit.")

'''