PlasmaFAIR/fortitude
Suggest that `srand` and `rand` be replaced by `random_seed` and `random_number`
Aperta
#283 aperta il 13 gen 2025
good first issuerule
Metriche repository
- Star
- (207 stelle)
- Metriche merge PR
- (Merge medio 9g 9h) (21 PR mergiate in 30 g)
Descrizione
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