In 2022 modified by Peter Willendrup to use the McStas random number generator and standard reflectivity function StdReflecFunc for mirrors.
Reference:
https://doi.org/10.1016/j.jmmm.2018.11.086
Implementations for McStas 2.x and 3.x can be found in the subfolders.