I'm try to use random function in a Matlab function which is called by a python program. Unfortunately, the seed seems to be fixed by the matlab engine because the function called in Matlab works, but when it is called through Python it always returns the same values.
I isolated the problem by calling several times this python program :
if __name__ == "__main__":
# Start matlab
eng = matlab.engine.start_matlab()
print(eng.rand(1, 1, nargout=1))
# Close Matlab
I obtained different values for the python random function, but the value for the Matlab function is always the same. I use Matlab 2015a and python 2.7.