This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from random import random | |
| from math import e | |
| num = 100000 # number of pulls to do for each simulation | |
| base_prob = { 4: 3.29/100, 5: 1.5/100 } # can set 5 to 0 and 4 to 10/100 for a 4-star banner | |
| pity = { 4: 10, 5: 20 } # don't forget to change pity[4] to 5 for a 4-star banner | |
| # the following are just test values: | |
| exponential_pity_threshold = 2/5 # threshold after which soft pity formula should activate (fraction of hard pity) |