Last active
February 8, 2019 10:16
-
-
Save Joseph94m/3da4e6eadc672f5791f3e73e6caf75a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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