Switches Cells4 to use new sample function to match Python.

TP.py will be switching to new sample function so C++ needs to be updated first so they match.