From 3de4b495fb176eba9a0eb517a4ce05903cb67acb Mon Sep 17 00:00:00 2001 From: Juan Gomez Luna Date: Wed, 16 Jun 2021 19:46:05 +0200 Subject: PrIM -- first commit --- TS/baselines/gpu/randlist.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 TS/baselines/gpu/randlist.py (limited to 'TS/baselines/gpu/randlist.py') 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() -- cgit v1.2.3