Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
NumPY01
abracadabra
Saurabh
one
Python. Even
Primes finding algorithm
Ortalama
Gauss
Python My G(ame,uess)
Inheritance.py