Can someone please explain how to use the subroutine random_number? e.g.
program abcd
real :: a
call random_number(a)
print*, a
end program abcd
-------------------------------------
This simple program prints a random number but then every time you run the program, the random number is the same. Is there a way to make it change every time?
program abcd
real :: a
call random_number(a)
print*, a
end program abcd
-------------------------------------
This simple program prints a random number but then every time you run the program, the random number is the same. Is there a way to make it change every time?