Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Spanky Deluxe

macrumors 603
Original poster
Mar 17, 2005
5,293
1,839
London, UK
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.