Loop, 10
{
i := A_Index
j := A_Index
Random, a%i%%j%, 1, 20
}
If (a%i%%j% == 20)
Goto finish
finish:
MsgBox % "a[" . i . "][" . j . "]" is 20
Return