Hong-Phuc Bui
2024-09-09 a95dc36edf331905b871820ddff4f8e8c0b38209
1
2
3
4
5
6
7
8
9
import random
 
num_of_col = 4
num_of_row = 3
x = [
  [random.randint(1,6) for i in range(0, num_of_col)] for j in range(0, num_of_row)
]
 
print(x)