Skip to content

Commit 263a9b8

Browse files
committed
add random seed
1 parent a8c5649 commit 263a9b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/python/selections.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ import plotly.graph_objects as go
160160

161161
import numpy as np
162162

163+
np.random.seed(0)
163164
t = np.linspace(-1, 1.2, 2000)
164165
x = (t**3) + (0.3 * np.random.randn(2000))
165166
y = (t**6) + (0.3 * np.random.randn(2000))

0 commit comments

Comments
 (0)