Using random function we can generate random values. To generate same random number every time we execute the code, we use random.seed(42)! I mean we use seed function to reproduce the random number.
But, i want to generate the samples using “Latin Hypercube sampling” method. So, in this method, is there any way to generate the same samples everytime we execute the code?
The Latin Hypercube sampling method is still random. You would have to use a fixed pseudorandom number generator seed to get the same results every time from a Latin Hypercube sampling.
Hi Jeremy! Thanks for the reply. Could you please say little bit more detail. I mean can you please say how to use “a fixed pseudorandom number generator seed”? Is there any standard function or piece of code, which i can use to do what you mentioned. Thanks!