import random import numpy as np def create_square_array(n): return np.array([random.randint(0, n**2) for i in range(n*n)]).reshape(n,n) create_square_array(8)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter