Open alaingdl opened 1 year ago
seed=0 is a nice trick! IDL generates a different guess as GDL in this case. Good luck to find it! (although inverting the mersenne sequence is possible). BTW the randomn sequence in your example appears to be different btw IDL and GDL when --no-use_dFSMT , but they are not. (???)
You could change !GDL.GDL_NO_DSFMT in flight, but you'll lose the sequence seed, they have not the same size, this may need some work!
maybe it is smart to issue a message when explicitly called in this context ?
Yes, and in the same time, users seem panicked with these messages. We really should make more messages, but enable them only with a commandline switch ( --verbose or the like)
For me, having the possibility to call GDL with --no-dSFMT or using GDL_NO_DSFMT= 1 is very convenient to cross-check the computations using RANDOM in IDL and in GDL since the series are the same, except when seed is set to 0 (zero)
(as usual I made some tests, looked at the code, play with old and very old GDL versions : persistent bug)
A request
And I have also a request : it would be good to be able to change the status of !GDL.GDL_NO_DSFMT in fligth without to have to restart
gdl
, but !GDL is ReadOnly as done bysysVarRdOnlyList.push_back( gdl)
ininitsysvar.cpp
. Do you agree I change that status ? (this would be convenient for some tests, including the ones for Coyote lib.)