15 lines
250 B
Python
Executable file
15 lines
250 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import random
|
|
import sys
|
|
|
|
random.seed(0)
|
|
|
|
MAX = 100
|
|
|
|
D = int(sys.argv[1]) # Number of dimensions
|
|
N = int(sys.argv[2]) # Number of vectors
|
|
|
|
for _ in range(N):
|
|
print(','.join([str(random.random() * MAX) for _ in range(D)]))
|