Source sampling functions fully callable from Python.