system_rand(3f) - [M_system:PSEUDORANDOM] call pseudo-random number generator rand(3c) (LICENSE:PD)
Synopsis
Description
Examples
integer(kind=c_int) :: function system_rand()
Use rand(3c) to generate pseudo-random numbers.
Sample program:
program demo_system_rand use M_system, only : system_srand, system_rand implicit none integer :: iResults:call system_srand(1001) do i=1,10 write(*,*)system_rand() enddo write(*,*)
end program demo_system_rand
> 1828856591 > 238982045 > 764441674 > 195845482 > 1154046339 > 2054478192 > 1697119394 > 233976085 > 1369589941 > 2011286580 >
Nemo Release 3.1 | system_rand (3m_system) | March 07, 2025 |