summaryrefslogtreecommitdiff
path: root/TS/baselines/gpu/randlist.py
blob: 6ebb4d8dcfb849e682e69ddd97d93f7bc41c95ee (plain)
1
2
3
4
5
6
7
8
9
10
11
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()