This changes the way random integers are computed so that there is no intermediate conversion to float which looses accuracy. This change breaks compatibility because it changes the generated random numbers. Therefore this is done in Blender 5.0. Performance seems to be about ~6% better than before. Pull Request: https://projects.blender.org/blender/blender/pulls/118795