Board Thread:Questions and Answers/@comment-24071602-20141011230416/@comment-27723099-20141012122445

I looked for it but I did not understand this part of the code :/

If anyone can figure out what this means, please tell me:

public static int getChance(float probability, int seconds)

{

int ticks = seconds * 20;

double d = (double)probability;

d = 1D - d;

d = Math.pow(d, 1D / (double)ticks);

d = 1D - d;

d = 1D / d;

d /= 20D;

int chance = (int)Math.round(d);

return chance;

}

public static int RARE = getChance(0.1F, 3600);

public static int UNCOMMON = getChance(0.3F, 3600);

public static int COMMON = getChance(0.9F, 3600);