Merge "Fix return range for rsSample."