See my previous comment. I do not think the random module is causing the difference, but the scipy.optimize module. This may also be the reason for Juan’s problem with the warnings. I need to verify this by manually installing an older scipy version.