Generates a random array of real numbers in the range [0, 1)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(rndgen), | intent(in) | :: | gen | |||
integer(kind=i4), | intent(in) | :: | n |
function rnd_array_rnd(gen, n) result(arr) class(rndgen), intent(in) :: gen integer(kind=i4), intent(in) :: n integer(kind=i4) :: i real(kind=dp), allocatable :: arr(:) arr = [(gen%rnd(), i = 1, n)] end function rnd_array_rnd