From 1060e673e00703a93b5c65f201998f039135346a Mon Sep 17 00:00:00 2001 From: KnightSnape <245276732@qq.com> Date: Fri, 9 May 2025 15:19:16 +0800 Subject: [PATCH] update Q12 another method --- 100_Numpy_exercises_with_hints_with_solutions.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/100_Numpy_exercises_with_hints_with_solutions.md b/100_Numpy_exercises_with_hints_with_solutions.md index b511dfc..3d0a490 100644 --- a/100_Numpy_exercises_with_hints_with_solutions.md +++ b/100_Numpy_exercises_with_hints_with_solutions.md @@ -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`