Skip to content

Instantly share code, notes, and snippets.

@vesche
Created July 9, 2022 04:05
Show Gist options
  • Save vesche/54e004ace7f6a34fbf30ecd03d15ef78 to your computer and use it in GitHub Desktop.
Save vesche/54e004ace7f6a34fbf30ecd03d15ef78 to your computer and use it in GitHub Desktop.
print('OoT Dampe Heart Piece Cumulative Probability\n')
print('\t'.join(['try', 'probability', 'equation']))
for i in range(1, 99):
print('\t'.join([
f'{i:<4}',
f'{str(round((1-(9/10)**i)*100, 3))+"%":<12}',
f'1 - (9/10)**{i}',
]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment