PlasmaFAIR/fortitude
Suggest that `srand` and `rand` be replaced by `random_seed` and `random_number`
Open
#283 opened on Jan 13, 2025
good first issuerule
Repository metrics
- Stars
- (207 stars)
- PR merge metrics
- (PR metrics pending)
Description
For this code from the gfortran documentation, Fortitude could suggest that srand and rand be replaced by random_seed and random_number.
program test_rand
implicit none
integer,parameter :: seed = 86456
call srand(seed)
print *, rand(), rand(), rand(), rand()
print *, rand(seed), rand(), rand(), rand()
end program test_rand