Skip to content

Commit

Permalink
Merge pull request #17 from samaid/build
Browse files Browse the repository at this point in the history
Update impl_dpnp.py
  • Loading branch information
samaid authored Apr 15, 2023
2 parents 06a84a1 + dcb8f60 commit c43c3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game_of_life_demo/impl/impl_dpnp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def init_grid(w, h, p):
u = np.random.random(w * h)
u = np.random.random(w * h) # Working around the lack of random.choice
return np.where(u <= p, 1, 0).reshape(h, w)


Expand Down

0 comments on commit c43c3ce

Please sign in to comment.