Skip to content

Instantly share code, notes, and snippets.

@Joseph94m
Last active February 8, 2019 10:16
Show Gist options
  • Save Joseph94m/3da4e6eadc672f5791f3e73e6caf75a8 to your computer and use it in GitHub Desktop.
Save Joseph94m/3da4e6eadc672f5791f3e73e6caf75a8 to your computer and use it in GitHub Desktop.
def sample(n):
game_results = np.random.choice([1, -1, 0], size=n, p=[0.2, 0.15, 0.65])
return game_results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment