Uniform random number on the interval [xl,xu].
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | xl |
lower bound |
||
| real(kind=wp), | intent(in) | :: | xu |
upper bound |
function uniform(xl,xu) implicit none real(wp),intent(in) :: xl !! lower bound real(wp),intent(in) :: xu !! upper bound real(wp) :: uniform uniform = xl + (xu-xl)*uniform_random_number() end function uniform