Three lines weighted random choice with Python · HackerTrans