[FOLD] Remove RandomNumbers class and use free functions instead