It's useful it someone needs to create a variable that takes on values around the average most of the time, but has small chances of taking on more extreme values. I think it's useful for item drops and quality levels and whatnot.
The editor only lets you generate uniformly distributed numbers, I created the following function that generates normally distributed RV's.
Parameters:
Mean = 0.0 <Real>
Standard Deviation = 0.0 <Real>
Local Variables:
RV = 0.0 <Real>
Actions:
Set RV = Standard Deviation*(Square root(-2.0*Log2(Random real between 0.0 and 1.0)/Log2("2.7183"))*(Sin(360*Random real between 0.0 and 1.0)))+Mean
@Yaksmanofage: Go
It's useful it someone needs to create a variable that takes on values around the average most of the time, but has small chances of taking on more extreme values. I think it's useful for item drops and quality levels and whatnot.
The editor only lets you generate uniformly distributed numbers, I created the following function that generates normally distributed RV's.
Parameters:
Mean = 0.0 <Real>
Standard Deviation = 0.0 <Real>
Local Variables:
RV = 0.0 <Real>
Actions:
Set RV = Standard Deviation*(Square root(-2.0*Log2(Random real between 0.0 and 1.0)/Log2("2.7183"))*(Sin(360*Random real between 0.0 and 1.0)))+Mean
Return RV