Skip to content

Commit 87a57da

Browse files
committed
Update translation: lectures/need_for_speed.md
1 parent 4d9ab6e commit 87a57da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lectures/need_for_speed.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,9 @@ with qe.Timer():
330330
کد برداری شده زیر از NumPy استفاده می‌کند که به زودی آن را به تفصیل بررسی خواهیم کرد، تا همان کار را انجام دهد.
331331

332332
```{code-cell} ipython
333+
rng = np.random.default_rng()
333334
with qe.Timer():
334-
x = np.random.uniform(0, 1, n)
335+
x = rng.uniform(0, 1, n)
335336
y = np.sum(x**2)
336337
```
337338

0 commit comments

Comments
 (0)