HP van Braam
|
240f510fa7
Core ubsan fixes
|
8 months ago |
Togira
|
ab13513403
Fix RandomPCG::rand_weighted incorrectly returning -1
|
1 year ago |
A Thousand Ships
|
9c518d5f42
[Core] Fix `rand_weighted` not using the current state
|
1 year ago |
David Luevano Alvarado
|
981883d041
Fix `RandomNumberGenerator::rand_weighted` return type
|
1 year ago |
João Henrique Machado Silva
|
88df5ea8ac
Add RandomNumberGenerator::rand_weighted method
|
1 year ago |
Rémi Verschelde
|
d95794ec8a
One Copyright Update to rule them all
|
2 years ago |
Rémi Verschelde
|
fe52458154
Update copyright statements to 2022
|
3 years ago |
George Marques
|
7610fc02a0
Cast Unix time to uint in the randomize function
|
4 years ago |
kobewi
|
22efa850bd
Make randomize() use unix time too
|
4 years ago |
Rémi Verschelde
|
b5334d14f7
Update copyright statements to 2021
|
4 years ago |
Marco Cognetta
|
900e55eb70
simplify randi_range
|
4 years ago |
Yuri Roubinsky
|
38fb26794b
Exposed randi_range to global funcs + renamed rand_range to randf_range
|
5 years ago |
Rémi Verschelde
|
a7f49ac9a1
Update copyright statements to 2020
|
5 years ago |
Rémi Verschelde
|
73960e585b
Merge pull request #27193 from toasteater/fix/pcg-randf
|
6 years ago |
Chaosus
|
6280be46a6
Properly setup seed in RNG
|
6 years ago |
toasteater
|
5f1b9a2313
Improved uniformity of RandomPCG::randf.
|
6 years ago |
Rémi Verschelde
|
bce56cf337
Fix -Wc++11-extensions warning after #26737
|
6 years ago |
MidZik
|
4eccb58bc5
Fixed get_seed() not returning the correct seed.
|
6 years ago |
Rémi Verschelde
|
b16c309f82
Update copyright statements to 2019
|
6 years ago |
Chaosus
|
f8151a9e50
Implement random number generator
|
7 years ago |