Version experimental
Generation of random integers with different kinds (Specification)
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
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int8), | intent(in) | :: | n |
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
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int16), | intent(in) | :: | n |
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
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int32), | intent(in) | :: | n |
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
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int64), | intent(in) | :: | n |