1import random
2from perlin_noise import PerlinNoise
3import matplotlib.pyplot as plt
4
5noise = PerlinNoise(octaves=10, seed=random.randrange(1,1000000000000000))
6xpix, ypix = 100, 100
7pic = [[noise([i/xpix, j/ypix]) for j in range(xpix)] for i in range(ypix)]
8
9plt.imshow(pic, cmap='gray')
10plt.show()