Skip to content

Instantly share code, notes, and snippets.

View pimlock's full-sized avatar

Piotr Mlocek pimlock

View GitHub Profile
@pimlock
pimlock / shardcalc.py
Created September 12, 2018 18:42 — forked from colmmacc/shardcalc.py
Calculate the blast radius of a shuffle shard
import sys
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n - 1)
def choose(n, m):
return factorial(n) / (factorial(m) * factorial(n - m))