mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 01:59:08 +00:00
97f56a2ff2
put data analysis into its own folder
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")
|