more useless work done
This commit is contained in:
21
Modules/trnd.f90
Normal file
21
Modules/trnd.f90
Normal file
@@ -0,0 +1,21 @@
|
||||
program essai
|
||||
|
||||
use mathstuff2
|
||||
implicit none
|
||||
|
||||
integer :: foo, bar
|
||||
real :: quux
|
||||
double precision :: somme
|
||||
|
||||
write(0, *) "----------------- essai -------------------"
|
||||
|
||||
call init_random_seed() ! in module 'mathstuff'
|
||||
somme = 0.0
|
||||
do foo=1, 500
|
||||
quux = rand() + rand()
|
||||
somme = somme + quux
|
||||
bar = mod(irand(), 7)
|
||||
print *, foo, quux, somme/foo, bar
|
||||
enddo
|
||||
|
||||
end program
|
||||
Reference in New Issue
Block a user