mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
17 lines
337 B
Python
17 lines
337 B
Python
import random
|
|
|
|
def generate(filename, x, y, low, high):
|
|
|
|
file = open(filename, "w")
|
|
|
|
for i in range (0, y, 1):
|
|
|
|
temp = ""
|
|
|
|
for j in range (0, x - 1, 1):
|
|
|
|
temp = str(random.uniform(low, high)) + "," + temp
|
|
|
|
temp = temp + str(random.uniform(low, high))
|
|
file.write(temp + "\n")
|