Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #27193 from toasteater/fix/pcg-randf | Rémi Verschelde | 2019-06-12 | 1 | -6/+2 |
|\ | | | | | Improved uniformity of RandomPCG::randf. | ||||
| * | Improved uniformity of RandomPCG::randf. | toasteater | 2019-03-19 | 1 | -6/+2 |
| | | | | | | | | | | | | | | | | | | | | When generating single precision floats, Godot casts a uint32_t to float, causing uniformity loss. This new randf, inspired by T. R. Campbell's random_real, samples the output of rand as the fraction part of an infinite binary number, with some tricks to reduce ops and branching. This method provides "good enough" uniformity at decent speed, for floats greater than 2^-64. Smaller numbers are floored to 0. | ||||
* | | Properly setup seed in RNG | Chaosus | 2019-03-27 | 1 | -2/+1 |
|/ | |||||
* | Fix -Wc++11-extensions warning after #26737 | Rémi Verschelde | 2019-03-07 | 1 | -1/+2 |
| | | | | Fixes #26769. | ||||
* | Fixed get_seed() not returning the correct seed. | MidZik | 2019-03-07 | 1 | -7/+7 |
| | |||||
* | Update copyright statements to 2019 | Rémi Verschelde | 2019-01-01 | 1 | -2/+2 |
| | | | | Happy new year to the wonderful Godot community! | ||||
* | Implement random number generator | Chaosus | 2018-11-13 | 1 | -0/+55 |
Co-authored-by: Zirak <zirakertan@gmail.com> |