Can anyone explain how to use the random number seed function in Fortran 90? I'm away from home and don't have my Fortran books with me and I'm not getting much luck with online resources.
My code's a simulation to which I've just added an extra function which has to use a random number. Ideally I want the code to read in a number along with the rest of its input that specifies a random number seed so that if I run the code with the same seed on the same machine then I should get the same results.
How can I do this with the random_seed function?
My code's a simulation to which I've just added an extra function which has to use a random number. Ideally I want the code to read in a number along with the rest of its input that specifies a random number seed so that if I run the code with the same seed on the same machine then I should get the same results.
How can I do this with the random_seed function?