Function has been refactored in rng-rand unit test leveraging the newly introduced helper function.