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 4d9ab6e commit 87a57daCopy full SHA for 87a57da
1 file changed
lectures/need_for_speed.md
@@ -330,8 +330,9 @@ with qe.Timer():
330
کد برداری شده زیر از NumPy استفاده میکند که به زودی آن را به تفصیل بررسی خواهیم کرد، تا همان کار را انجام دهد.
331
332
```{code-cell} ipython
333
+rng = np.random.default_rng()
334
with qe.Timer():
- x = np.random.uniform(0, 1, n)
335
+ x = rng.uniform(0, 1, n)
336
y = np.sum(x**2)
337
```
338
0 commit comments