Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radom_number help

Status
Not open for further replies.

notnek

Technical User
Apr 25, 2011
3
GB
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top