Use python image to make random diagrams

from PIL import Image
import numpy as np

arr = np.random.randint
print (arr)
im = Image.fromarray (arr,"RGB")
im.show ()

Why is the image obtained by this code not random

clipboard.png

Mar.18,2021

np.array (im) data are inconsistent with arr data
Image.fromarray (arr,'RGB')

arr = np.random.randint (0256 unsigned 4-1, (100100), dtype='uint32')-sharp unsigned int 4 bytes
im = Image.fromarray (arr,'RGBA')-sharp reads
im.show ()

by byte
Menu