Last active
May 12, 2017 02:54
-
-
Save lemeb/250f3d76fe9e849b1c3c701429cdc5e5 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
import random | |
PROB = 0.1 # Peut être aussi 0.2, 0.4, 0.5... | |
for i in range(1,578): | |
female_odds = PROB+(2*PROB-1)*(i/577) | |
print('H') if random.random() > female_odds else print('F') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment