Merge pull request #233 from KnightSnape/master
Use default_rng() instead of np.random.random in Exercise #12
This commit is contained in:
commit
2b81a8eb25
@ -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`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user