Skip to content

Commit 1060e67

Browse files
committed
update Q12 another method
1 parent 6b8d5bc commit 1060e67

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

100_Numpy_exercises_with_hints_with_solutions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ print(Z)
9696
Z = np.random.random((3,3,3))
9797
print(Z)
9898
```
99+
`hint: np.random.default_rng().random`
100+
```python
101+
# Author: KnightSnape
102+
103+
rng = np.random.default_rng()
104+
Z = rng.random((3, 3, 3))
105+
print(Z)
106+
```
107+
99108
#### 13. Create a 10x10 array with random values and find the minimum and maximum values (★☆☆)
100109
`hint: min, max`
101110

0 commit comments

Comments
 (0)