❔ Creating a code that generates percentage probability for the following script

https://paste.mod.gg/jebpbpgsthoq/0 I want to know what the probability is for hp, attack, defense, special attack, special defense and speed to all be equal to 31, but idk how to do it
BlazeBin - jebpbpgsthoq
A tool for sharing your source code with the world!
3 Replies
Moods
Moods2y ago
if anyone sees it as wrong pls do correct me
static double TruncatedGaussianCDF(double x, double mean, double stdDev)
{
return (1 + MathErf((x - mean) / (stdDev * Math.Sqrt(2)))) / 2;
}
static double TruncatedGaussianCDF(double x, double mean, double stdDev)
{
return (1 + MathErf((x - mean) / (stdDev * Math.Sqrt(2)))) / 2;
}
to find the probability of getting 31 in a specific stat i believe you would end up using this formula you would substitute 32 in it, then 31, then subtract then for all stats, just raise it to the power of 6 sorry, to explain better, put 32 and 31 in place of double x as for the mean and standard deviation, that seems to have alr been provided
Giratina Musics(Road 2 Polyglot)
could you show how it would look, bc I keep getting errors wait, I might have an idea myself
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server