Add random sampling