Skip to content

Instantly share code, notes, and snippets.

Ben wohlben

  • Kiel
Block or report user

Report or block wohlben

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
wohlben /
Created Jan 10, 2018 — forked from Dowwie/
As of Python3.6, random.choices offers weighted choices
age_groups = [lambda: random.randint(18,25),
lambda: random.randint(25,40),
lambda: random.randint(40,90)]
age_group_probs = [.5, .3, .1]
def get_choices():
pop_choices = random.choices(age_groups, weights=age_group_probs, k=10)
population = list(map(lambda x: x(), pop_choices))
wohlben /
Created Aug 17, 2017
Keybase Identity

Keybase proof

I hereby claim:

  • I am wohlben on github.
  • I am wohlben ( on keybase.
  • I have a public key ASBmNgWu9DrePOMIWvBns9nT4ltQenWaN7-AmTsBgUwnmAo

To claim this, I am signing this object:

You can’t perform that action at this time.