Well it’s not exactly a great chance. That weapon has more potential then you’re probably used to dealing with. And getting a weapon upgraded that high only happened 750 times out of 10,000. That’s only a 7.5% chance ever to get that good.
Please punch the program into java and see how it works yourself if you like. I tried to take out as much of the html that got into it so you can double check the source code easier if you like. Refer to the original code if you think I may have cleaned it improperly.
[details=Summary]package javaapplication2;
public class JavaApplication2 {
public static void main(String[] args) {
int upgradeLevel = 5;
int chance = 88;
double x = 0.0;
int success = 0;
for (int sim = 10000; sim > 0; sim–){
for (int potential = 9; potential > 0; ){
x = Math.random()*100;
chance = 0;
if (upgradeLevel > 5) chance = 12;
if (upgradeLevel > 6) chance = 22;
if (upgradeLevel > 7) chance = 32;
if (upgradeLevel > 8) chance = 41;
if (upgradeLevel > 9) chance = 49;
if (x > chance) {
upgradeLevel++;
} else{
upgradeLevel–;
potential–;
}
if (upgradeLevel > 22){ //fake item break to exit loop
success++;
upgradeLevel = 5;
potential = 0;
}
}
}
System.out.println(success);
}
}
[/details]
The simulation was also running quickly. So if you want a more accurate result you could probably add a 0 or two to the number of times the simulation was run. I didn’t run it myself I had programmer guy do it cause I didn’t feel like installing a compiler. He said it took about the blink of an eye to run the 10,000 simulations. Which math guy preferred since he said excel starts chugging much earlier when you run simulations the way he was thinking of setting it up.