PlasmaFAIR/fortitude

Suggest that `srand` and `rand` be replaced by `random_seed` and `random_number`

Aperta

#283 aperta il 13 gen 2025

 (0 commenti) (0 reazioni) (0 assegnatari)Rust (33 fork)auto 404
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

Guida contributor