Find a random position on matrix such that
matrix(i, j) is .true.
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in), | dimension(:,:) | :: | matrix | Matrix whose |
|
integer, | intent(out) | :: | i | Returned random point on matrix. |
||
integer, | intent(out) | :: | j | Returned random point on matrix. |