Comparing Matlab and Numpy code that uses random number generation

前端 未结 4 526
后悔当初
后悔当初 2020-12-10 06:25

Is there some way to make the random number generator in numpy generate the same random numbers as in Matlab, given the same seed?

I tried the following in Matlab:

4条回答
  •  暖寄归人
    2020-12-10 07:02

    How about running a matlab script to get the random numbers based upon a seed, from within your python code?

提交回复
热议问题