PlasmaFAIR/fortitude

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

Open

#283 opened on Jan 13, 2025

 (0 comments) (0 reactions) (0 assignees)Rust (33 forks)auto 404
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

Contributor guide