PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
import numpy as np
x0, x1 = 1, 5
n_seq = 7
rand_seq = []
for _ in range(n_seq):
tmp = np.arange(x0, x1+1)
np.random.shuffle(tmp)
rand_seq.append(tmp)
rand_seq = np.array(rand_seq)
print(rand_seq.transpose())
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run