Sub main()
Dim ambi(2),ruote(1)
r=11
ruote(1)=r
numeri=Array(66,67,69,78,72,89,55,57,59,75,77,86,65,68,79,88,50,58,54,70,87,56,52,76,85)
num13=Array(66,67,69,78,72,89)
num14=Array(55,57,59,75,77,86)
num15=Array(65,68,79,88,"","")
num16=Array(50,58,54,70,87,"")
num17=Array(56,52,76,85,"","")
x=UBound(numeri)
y=UBound(num13)
For es=EstrazioneFin-250 To EstrazioneFin'463
c=0
For i= 0 To x
ambi(1)=numeri(i)
For j= i+1 To x
ambi(2)=numeri(j)
If Pari(ambi(1))=True Xor Pari(ambi(2))=True Then
sp13=0:sp14=0:sp15=0:sp16=0:sp17=0
For n1= 1 To 2
For n2 = 0 To y
If ambi(n1)=num13(n2) Then sp13=sp13+1
If ambi(n1)=num14(n2) Then sp14=sp14+1
If ambi(n1)=num15(n2) Then sp15=sp15+1
If ambi(n1)=num16(n2) Then sp16=sp16+1
If ambi(n1)=num17(n2) Then sp17=sp17+1
next:next
If sp13<2 And sp14<2 And sp15<2 And sp16<2 _
And sp17<2 Then
If SerieFreq(es,es,ambi,ruote,2)>0 Then
If SerieFreq(es+1, EstrazioneFin,ambi,ruote,2)=0 Then
rt= EstrazioneFin-es
c=c+1
Messaggio " "&formatspace(c,4,1)&") "& SiglaRuota(r)&" "&StringaNumeri (ambi) &" "&formatspace(rt,4,1)
If SerieFreq(EstrazioneFin+1,EstrazioneFin+1,ambi,ruote,2)>0 Then
usc=usc+1
ColoreTesto 2
Scrivi " "& FormatSpace(c,4,1)&") "& SiglaRuota(r) &" "&StringaNumeri (ambi) _
&" at "&formatspace(rt,4,1)&" sortito"
Else
ColoreTesto 0
Scrivi " "& FormatSpace(c,4,1)&") "& SiglaRuota(r) &" "&StringaNumeri (ambi) &" at "&formatspace(rt,4,1)
ColoreTesto 0
End If
End If
End If
End If
End If
Next
Next
ColoreTesto 0
If c>0 Then Scrivi " CASI "&formatspace(c,4,1)
Next
If usc>0 Then Scrivi usc
End Sub