This should be this:
$tolerance = 5
function Test-Probability($Probability, $Expected, $Tolerance) {
[Math]::Abs($Expected - $Tolerance) -le $Tolerance
}
I changed 1% to 5% since that's what I could get working locally. I'm not sure if that is sufficiently high or not.
This should be this:
This should be this:
I changed 1% to 5% since that's what I could get working locally. I'm not sure if that is sufficiently high or not.
This should be this: