We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e98bbd9 commit 36eeff1Copy full SHA for 36eeff1
python-bytes/generate_image.py
@@ -1,6 +1,6 @@
1
import numpy as np
2
from PIL import Image
3
4
-pixels = np.random.rand(1080, 1920, 3) * 255
+pixels = np.random.default_rng().random((1080, 1920, 3)) * 255
5
image = Image.fromarray(pixels.astype("uint8"))
6
image.save("image.png")
0 commit comments