stdlib_random Module



Interfaces

public interface dist_rand

Version experimental

Generation of random integers with different kinds (Specification)

  • private function dist_rand_iint8(n) result(res)

    Random integer generation for various kinds result = [-2^k, 2^k - 1], k = 7, 15, 31, 63, depending on input kind Result will be operated by bitwise operators to generate desired integer and real pseudorandom numbers

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int8), intent(in) :: n

    Return Value integer(kind=int8)

  • private function dist_rand_iint16(n) result(res)

    Random integer generation for various kinds result = [-2^k, 2^k - 1], k = 7, 15, 31, 63, depending on input kind Result will be operated by bitwise operators to generate desired integer and real pseudorandom numbers

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int16), intent(in) :: n

    Return Value integer(kind=int16)

  • private function dist_rand_iint32(n) result(res)

    Random integer generation for various kinds result = [-2^k, 2^k - 1], k = 7, 15, 31, 63, depending on input kind Result will be operated by bitwise operators to generate desired integer and real pseudorandom numbers

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int32), intent(in) :: n

    Return Value integer(kind=int32)

  • private function dist_rand_iint64(n) result(res)

    Random integer generation for various kinds result = [-2^k, 2^k - 1], k = 7, 15, 31, 63, depending on input kind Result will be operated by bitwise operators to generate desired integer and real pseudorandom numbers

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int64), intent(in) :: n

    Return Value integer(kind=int64)

public interface random_seed

Version experimental

Set seed value for random number generator (Specification)

  • private subroutine random_distribution_seed_iint8(put, get)

    Set seed value for random number generator

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int8), intent(in) :: put
    integer(kind=int8), intent(out) :: get
  • private subroutine random_distribution_seed_iint16(put, get)

    Set seed value for random number generator

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int16), intent(in) :: put
    integer(kind=int16), intent(out) :: get
  • private subroutine random_distribution_seed_iint32(put, get)

    Set seed value for random number generator

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int32), intent(in) :: put
    integer(kind=int32), intent(out) :: get
  • private subroutine random_distribution_seed_iint64(put, get)

    Set seed value for random number generator

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int64), intent(in) :: put
    integer(kind=int64), intent(out) :: get