13 lines
233 B
Python
Executable file
13 lines
233 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import random
|
|
import sys
|
|
|
|
random.seed(0)
|
|
|
|
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()) for _ in range(D)]))
|