diff options
Diffstat (limited to 'TS/baselines/gpu/randlist.py')
-rw-r--r-- | TS/baselines/gpu/randlist.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/TS/baselines/gpu/randlist.py b/TS/baselines/gpu/randlist.py new file mode 100644 index 0000000..6ebb4d8 --- /dev/null +++ b/TS/baselines/gpu/randlist.py @@ -0,0 +1,12 @@ +import os +import sys +import random + + +#Generates a random list of floating point values between 0 and 10 +fd = open(sys.argv[2], "w") + +for i in range(0, int(sys.argv[1])): + fd.write(str(random.randint(0, 1000000000) / float(100000000)) + "\n") + +fd.close() |