import numpy as np import matplotlib.pyplot as plt
a = np.random.randint(0, 255, (100,100))
plt.imshow(a);