Skip to content

Instantly share code, notes, and snippets.

@jumpluff
jumpluff / cons_prob.py
Last active February 26, 2025 00:57
Python script to simulate consolidated probabilities of Infinity Nikki 4-star and 5-star banners, showing that there must be some form of weighting/soft pity active in order to achieve the advertised rates.
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)