jeudi 11 août 2016

Randomize in Fortran

I´m looking for a Fortran Function that is capable to give me a random INTEGER number between 2 values. For example, give me a random number between 2 and 8, extremes included ([2,8]).

I´ve been trying with RANDOM_NUMBER and RANDOM_SEED, but I don´t like It.

Do you have any suggestion or idea?

It is a simple question but I´m completely lost.

Thank you in advance.




Aucun commentaire:

Enregistrer un commentaire