This repository has been archived on 2019-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
s9-mtds-prj-flink/genVectors.py

15 lines
250 B
Python
Raw Normal View History

#!/usr/bin/env python3
import random
import sys
random.seed(0)
2019-01-24 20:12:14 +01:00
MAX = 100
D = int(sys.argv[1]) # Number of dimensions
N = int(sys.argv[2]) # Number of vectors
for _ in range(N):
2019-01-24 20:12:14 +01:00
print(','.join([str(random.random() * MAX) for _ in range(D)]))