Skip to content

Instantly share code, notes, and snippets.

@funkaoshi
Created November 18, 2012 01:26
Show Gist options
  • Select an option

  • Save funkaoshi/4102490 to your computer and use it in GitHub Desktop.

Select an option

Save funkaoshi/4102490 to your computer and use it in GitHub Desktop.
4d6 drop the lowest
import random
[sum(sorted((random.randint(1,6) for _ in range(4)), reverse=True)[:3]) for _ in range(6)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment