Skip to content
Prev 68781 / 398506 Next

Fortran dy lib on Solaris

On Thu, Apr 28, 2005 at 05:11:11PM +0100, V Nyirongo wrote:
Dear Vysaul,

  You can call srand to set the seed.

       implicit none
       integer i,seed,time
       seed=time()*2-13
       call srand(seed)
       print*,rand(0)
       do 10 i= 1, 10
         print*, rand(0)
10     continue
       end
 
  At least g77 can support srand and rand

  Good luck.