PlasmaFAIR/fortitude
Suggest that `srand` and `rand` be replaced by `random_seed` and `random_number`
オープン
#283 opened on 2025/01/13
good first issuerule
Repository metrics
- Stars
- (207 個のスター)
- PR merge metrics
- (平均マージ 9d 9h) (30d で 21 merged PRs)
説明
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