Fix revertibleRandom
with module test
#3025
Merged
revertibleRandom
with module test
#3025