Skip to content

Commit db4c209

Browse files
committed
use random instead of np.random
1 parent f415fb4 commit db4c209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/tutorial/tutorial.advanced-topics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def h(x, offset=offset):
392392
return x + a**2 / (a**2 + (x - offset) ** 2)
393393
394394
def g(x):
395-
time.sleep(np.random.randint(5))
395+
time.sleep(random.randrange(5))
396396
return x**2
397397
398398
async def async_h(x):

0 commit comments

Comments
 (0)