First, your array structure should be like this:
X0,Y0 =Name1 (this element can also be referred as X0)
X0,Y1 = Spec1
X0,Y2 = Spec2
X0,Y3 = Spec3
X1,Y0 =Name2 (this element can also be referred as X1)
X1,Y1 = Spec4
X1,Y2 = Spec5
X1,Y3 = Spec6
To pick random name use this code:
variable r=int(random(array.width))
Text1 set text to "Name: " & array.at(r)
To loop through all specs for this name:
For y=0 to (array.height-1) -> Text2 append text array.at(r, loopindex) & " "