Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
matrix with random numbers
import random random_list = [] for x in range(900): # print (random.randint(0,9)) random_list.append(random.randint(0,9)) print ('random_list =',random_list) random_matrix, submatrix = [], [] n = 30 i = 1 while i -1 < 900: j = i - 1 while j < i + 29: submatrix.append(random_list[j]) j = j + 1 random_matrix.append(submatrix) submatrix = [] i = i + 30 print ("random_matrix =", random_matrix)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Sum
FlipFlop operator in Python
LinkedList implementation
p1
H.W5
benda x guna
Square-Triangle Numbers
Python, finditer(), filter emails and place put in tuple
Multi-Layer Neural Networks
just Comment
stackse - search stackoverflow differently
Please log in to post a comment.