generate.xsh
9 lines
| 194 B
| text/plain
|
TextLexer
Jeandet Alexis
|
r644 | #!/usr/bin/xonsh | ||
import numpy as np | ||||
import random | ||||
W,H=6,1000 | ||||
test = np.ones((H,W))*[(random.random()*65535)-32768 for col in range(W)] | ||||
np.savetxt("input.txt", test,fmt="%d", delimiter=" ") | ||||