Sub[SIZE=2][COLOR=#000000] main() [/COLOR]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Dim[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] rt(2),na(3),nb(3),e1(3),e2(2),lg1(3),lg2(3),ne(1),nr(4),nn(3),posta(1),poste(2),rtt(1),ru(1),amb(1)[/COLOR]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Dim[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] tt(7),ambo1(2),ambo2(2),ambo3(2)[/COLOR]
posta(1)=1
poste(2)=1
frm="Enplein"
fm=CInt (Len("Florindi"))
sc=Space(45)&frm
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] x=1 [/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] 7 : tt(x)=Mid(frm,x,1) : [/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]rs=InputBox ("Quante estrazioni vuoi controllare?",,100)
clp=InputBox ("Quanti colpi vuoi giocare?",,34)
fin=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]EstrazioneFin[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
ini=fin-rs
co=0
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] String(40," ")&"****** Rendiconto ****** ",1 [/COLOR]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] String(40," ")& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DataEstrazione[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000](ini)&" - "& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DataEstrazione[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000](fin)[/COLOR]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ColoreTesto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] 2[/COLOR]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] String(48,"=")&"listed "&frm &" Forum LottoCed X Arcor 'L'AMBO VINCENTE' di ARCOR",1 [/COLOR]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ColoreTesto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] 0[/COLOR]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] fm<>8 [/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Exit[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Sub[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] es=ini [/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] fin [/COLOR]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Messaggio[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] es [/COLOR]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] r1=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 10
rt(1)=r1 : rtt(1)=11
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] p1=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 4 : [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] p2=p1+1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 5
a1=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Estratto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es,r1,p1): a2=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Estratto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es,r1,p2)
da=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Distanza[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (a1,a2): df1=Abs (a1-a2)
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] da=20 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Or[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] da=30 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (da=df1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]And[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] a1>a2) [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Or[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (da<>df1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]And[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] a1<a2) [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] x1=a2:x2=a1
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (da=df1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]And[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] a1<a2) [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Or[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (da<>df1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]And[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] a1>a2) [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] x1=a1 : x2=a2
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] da=20 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] nx1=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Fuori90[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ((x1+90)-10):nx2=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Fuori90[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (x2+10)
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] da=30 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] nx1=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Fuori90[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (x1+10) : nx2=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Fuori90[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ((x2+90)-10)
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] r2=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 10
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] r2<>r1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
rt(2)=r2 :g1=0
po1=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Posizione[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es,r2,nx1): po2=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Posizione[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es,r2,nx2)
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] po1>0 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Or[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] po2>0 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] po1>0 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]And[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (po1=p1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Or[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] po1=p2) [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] g1=g1+1 : b1=nx1 : b2=nx2 : q1=po1
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] po2>0 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]And[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (po2=p1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Or[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] po2=p2) [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] g1=g1+1 : b1=nx2 : b2=nx1 : q1=po2
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] g1=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]And[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Cadenza[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (b1)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Cadenza[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (a1) [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
e1(1)=x1:e1(2)=x2:e1(3)=b1
[/SIZE][SIZE=2][COLOR=#009500][SIZE=2][COLOR=#009500]'Creare i numeri diametrali in decina o di figua dei 3 numeri trovati
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]na(1)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Diametrale[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (a1):na(2)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Diametrale[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (a2):na(3)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Diametrale[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (b1)
nb(1)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DiametraleD[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (a1):nb(2)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DiametraleD[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (a2):nb(3)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DiametraleD[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (b1)
sf1=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]SerieFreq[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es,es,na,rt,1) : sf2=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]SerieFreq[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es,es,nb,rt,1)
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] sf1>0 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Or[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] sf2>0 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
g=0: k1=0:k2=0
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] j=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 3 : [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] i=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 5
n1=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Estratto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es,r1,i): n2=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Estratto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es,r2,i)
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] na(j)=n1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] g=g+1 : k1=1 : nu=n1 : ne(1)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Diametrale[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (n1) : ro=r1
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] na(j)=n2 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] g=g+1 : k1=1 : nu=n2 : ne(1)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Diametrale[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (n2) : ro=r2
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] nb(j)=n1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] g=g+1 : k2=1 : nu=n1 : ne(1)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DiametraleD[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (n1): ro=r1
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] nb(j)=n2 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] g=g+1 : k2=1 : nu=n2 : ne(1)=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DiametraleD[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (n2): ro=r2
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] : [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] g=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] da=20 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] nr(1)=nx1:nr(2)=x1:nr(3)=x2 : nr(4)=nx2
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] da=30 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] nr(1)=x1:nr(2)=nx1:nr(3)=nx2 : nr(4)=x2
[/SIZE][SIZE=2][COLOR=#009500][SIZE=2][COLOR=#009500]'Abbinamenti
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]ab1=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Fuori90[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ((nr(1)+90)-10) : ab2=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Fuori90[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (nr(4)+10)
h=0 : [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Erase[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] nn
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] i=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 3
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] e1(i)<>ne(1) [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] h=h+1 : nn(h)=e1(i)
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] k1=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ab3=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Diametrale[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (nn(1)) : ab4=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Diametrale[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (nn(2))
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] k2=1 [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ab3=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DiametraleD[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (nn(1)) : ab4=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DiametraleD[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (nn(2))
[/SIZE][SIZE=2][COLOR=#009500][SIZE=2][COLOR=#009500]'Previsione
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]ambo1(1)=b2 : ambo1(2)=ab1
ambo2(1)=b2 : ambo2(2)=ab2
ambo3(1)=ab1 : ambo3(2)=ab2
lg1(1)=b2:lg1(2)=ab1:lg1(3)=ab2
lg2(1)=b2:lg2(2)=ab3:lg2(3)=ab4
co=co+1
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] String (110,"=")&" Caso n°"& co [/COLOR]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DataEstrazione[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (es)&" "& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]SiglaRuota[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (r1)&" "& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]StringaEstratti[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (es,r1)&" ["& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Format2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (a1)&"."& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Format2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (a2)&"]"&_[/COLOR]
" Dist: "& [/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Format2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (da)&" Pos. "&p1&"^ "&p2&"^"&" 3° elemento (del num.)"& [/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Format2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (ne(1))&" = "& [/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Format2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (nu)&" sulla ruota di "& [/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]SiglaRuota[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (ro),1
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]DataEstrazione[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (es)&" "& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]SiglaRuota[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (r2)&" "& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]StringaEstratti[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (es,r2)&" ["& [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Format2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (b1)&" "&"] "&_[/COLOR]
" Pos. "&q1&"^ "&" Num. Base : "& [/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Format2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (x1)&"."& [/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Format2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (x2)&" Num. Ord. = "& [/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]StringaNumeri[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (nr),1
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] "--------------------------------------------------------------------------------------------------------------"[/COLOR]
sf3=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]SerieFreq[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es-19,es,lg1,rt,2) : sf4=[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]SerieFreq[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (es-19,es,lg2,rt,2)
sff=sf3+sf4
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] sff>2 [/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Then[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ColoreTesto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] 2 : [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] "Previsione non ottimale!!!" : [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ColoreTesto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] 0[/COLOR]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ImpostaGiocata[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 1,ambo1,rt,poste,clp,2
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ImpostaGiocata[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 2,ambo2,rt,poste,clp,2
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ImpostaGiocata[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 3,ambo3,rt,poste,clp,2
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ImpostaGiocata[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 4,lg1,rt,poste,clp,2
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ImpostaGiocata[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 5,lg2,rt,poste,clp,2
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Gioca[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] es
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]If[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] : [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]ScriviResoconto[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] : [/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]For[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] x=1 [/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]To[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] 7 : [/COLOR][/SIZE][SIZE=2][COLOR=#ea0000][SIZE=2][COLOR=#ea0000]Scrivi[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] Space(45)&tt(x),1 : [/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Next
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]End[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]Sub[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]
[/SIZE]