update Q12 another method

This commit is contained in:
KnightSnape 2025-05-09 15:19:16 +08:00
parent 6b8d5bcc14
commit 1060e673e0

View File

@ -96,6 +96,15 @@ print(Z)
Z = np.random.random((3,3,3))
print(Z)
```
`hint: np.random.default_rng().random`
```python
# Author: KnightSnape
rng = np.random.default_rng()
Z = rng.random((3, 3, 3))
print(Z)
```
#### 13. Create a 10x10 array with random values and find the minimum and maximum values (★☆☆)
`hint: min, max`