I was just thinking if you are specific that all pList1 are odds and all pList2 are
even, and if I understand you write you could do:
x=pBoard[pCard1]
y=pBoard[pCard2]
if ((ABS(x-y)=1) AND NOT((x MOD 2)+(x<y)) MOD 2) then ......
end if
The ABS(x-y)=1 checks if they are one away from each other (ie. one from each list)
The NOT((x MOD 2)+(x<y)) MOD 2) checks to see that the odd is less than the even
ie.
x=1
y=2
NOT((x MOD 2)+(x<y)) MOD 2)=1
x=2
y=1
NOT((x MOD 2)+(x<y)) MOD 2)=1
x=3
y=2
NOT((x MOD 2)+(x<y)) MOD 2)=0
x=2
y=3
NOT((x MOD 2)+(x<y)) MOD 2)=0
HTH,
Ike
I read the cast member numbers into two lists, pList1 and pList2, so that
synonyms occupy the same position in the list. In the example above,
pList1[1] = 1, pList2[1] = 2. Or, a more complete list would be pList1 =
[1, 3, 5, 7, 9] and pList2 = [2, 4, 6, 8, 10].
I then randomly place the list members in pBoard, so pBoard ends up with
something like [4, 7, 1, 3, 9, 6...]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]