Fortraneries/BloubWorld/mathstuff.f90

25 lines
470 B
Fortran
Raw Normal View History

2022-02-08 13:25:04 +01:00
module mathstuff
implicit none
contains
! ----------------------------------------------------------------
2022-02-16 15:59:42 +01:00
! really quick'n'dirty hack
2022-02-08 13:25:04 +01:00
subroutine init_random_seed()
integer, dimension(3) :: tarray
integer t3
call itime(tarray)
t3 = 200*tarray(1) + 20*tarray(2) + tarray(3)
print *, tarray, ' --> ', t3
call srand(t3)
end subroutine
! ----------------------------------------------------------------
end module mathstuff