Skip to content
Prev 2148 / 2152 Next

How to attain randomness and reproducibility

One possibility to consider is using a hash function to get random 
numbers:

r = hash(GLOBAL_SEED, parameter1, parameter2, parameter3)

This way the random numbers r are the same for each combination of 
parameters. This stays so even when you change how many parameters you go 
over. And if you want to get a different realization you just change 
GLOBAL_SEED.

There is a implementation of hash function in RMVL package as 
"mvl_hash_vectors" that returns uniformly distributed values between 1.0 
and 2.0.

best

Vladimir Dergachev
On Fri, 8 Dec 2023, David Lundquist wrote: