Executing random sampling of data