Hello @Dodox,
The random seed is set in the SetMetricSamplingPercentage.
A quick way of becoming familiar with SimpleITK is to go over our tutorials, primarily based on Jupyter notebooks. The latest is available online. We also maintain a large notebook repository on github, and our read-the-docs site.