Skip to content

Commit

Permalink
Set random seeds in mass_spring.py
Browse files Browse the repository at this point in the history
  • Loading branch information
samuela committed Aug 6, 2020
1 parent 9e57745 commit 144c7f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/mass_spring.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import numpy as np
import os

random.seed(0)
np.random.seed(0)

real = ti.f32
ti.init(default_fp=real)

Expand Down

0 comments on commit 144c7f3

Please sign in to comment.