GarageGames / Torque2D

MIT Licensed Open Source version of Torque 2D game engine from GarageGames
MIT License
1.67k stars 1.56k forks source link

GetRandomBell #386

Closed greenfire27 closed 7 years ago

greenfire27 commented 7 years ago

Adds a console function called GetRandomBell() that returns a random number that is normally distributed. Mean and standard deviation can optionally be included. This required adding one new file to the project. This one done in VS2013 and VS2015. Additional compilers will need to add the file as well.

yurembo commented 7 years ago

Excellent! I did't know about a std::mt19937 generator :) Cool thing! Nice to see T2D development!

greenfire27 commented 7 years ago

Thanks yurembo! I hope you enjoy it.