If I have only the following variable in a model (attached):
Code: Select all
RANDOM NORMAL( -1e+07 , 1e+07 , 0 , 0.5 , 41 )
Code: Select all
import numpy as np
np.random.seed(41)
output = []
for i in range(100):
test = np.random.normal(0, 0.5)
truncated_test = np.clip(test, -1e+7, 1e+7)
output.append(truncated_test)
I don't get the same results:
As far as I know, both Vensim and Python use Mersenne Twister algorithm for random number generation. Could Vensim lower precision cause any differences?