Skip to content

Instantly share code, notes, and snippets.

@lemeb
Last active May 12, 2017 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lemeb/250f3d76fe9e849b1c3c701429cdc5e5 to your computer and use it in GitHub Desktop.
Save lemeb/250f3d76fe9e849b1c3c701429cdc5e5 to your computer and use it in GitHub Desktop.
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