24 lines
		
	
	
		
			500 B
		
	
	
	
		
			Fortran
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			500 B
		
	
	
	
		
			Fortran
		
	
	
	
	
	
| module mathstuff
 | |
| 
 | |
|   implicit none
 | |
|   contains
 | |
| 
 | |
|   ! ----------------------------------------------------------------
 | |
|   !   really quick'n'dirty hack
 | |
| 
 | |
|   subroutine init_random_seed()
 | |
| 
 | |
|     integer, dimension(3) :: tarray
 | |
|     integer t3
 | |
| 
 | |
|     call itime(tarray)
 | |
|     t3 = 3600*tarray(1) + 60*tarray(2) + tarray(3)
 | |
|     write(0, '(A,3I3,A,I6)') "sranding: ", tarray, " --> ", t3
 | |
|     call srand(t3)
 | |
| 
 | |
|   end subroutine 
 | |
| 
 | |
|   ! ----------------------------------------------------------------
 | |
| end module mathstuff
 | |
| 
 | 
