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
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
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.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
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
@bakonking: Go
What's the difference?
@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.