TI RINGRAZIO PER LA RISPOSTA, MA IL TUO LISTATO E'SCRITTO BENE SI RIESCE A CAPIRE, MA QUESTO LISTATO CHE HO TROVATO IN GIRO COME SI FA A TRADURLO?????
SEMBRA UNA SCRIYYURA ALIENA.....
Spero Vi saranno Gradite
La 1^ Distanza 1 e 27
Sub main()
Dim nu1(10),nu2(10),nu3(10),nu4(4)
Dim ruote(10)
Dim posta(1),poste(2),post(3),pos(5)
posta(1)=1

oste(2)=1
poste(2)=0.5

ost(3)=1.5
pos(2)=3

os(3)=0.8

os(4)=0.2
fin=EstrazioneFin
ini=fin-100
For es=ini To fin
AvanzamentoElab ini,fin,es
For r1=1 To 11
For p1=1 To 4
For p2=p1+1 To 5
n1=Estratto(es,r1,p1)
n2=Estratto(es,r1,p2):ds1=Distanza(n1,n2)
For r2=r1+1 To 11
If r2=11 Then r2=12
For p3=1 To 4
For p4=p3+1 To 5
n3=Estratto(es,r2,p3)
n4=Estratto(es,r2,p4):ds2=Distanza(n3,n4)
If ds1=1 And ds2=27 Or ds1=27 And ds2=1 And p1=p3 And p2=p4 Then
casi=casi+1:Scrivi String(75,"="),1
Scrivi DataEstrazione(es,1)&" < "&siglaRuota(r1)& " "& StringaEstratti(es,r1)&_
" > ambo distanza 1 O 27 < "&Format2(n1)&"."&Format2 (n2)&" >"
Scrivi DataEstrazione(es,1)&" < "&siglARuota(r2)& " "& StringaEstratti(es,r2)&_
" > ambo distanza 1 O 27 < "&Format2(n3)&"."&Format2 (n4)&" >"
Scrivi String(65,"-")&" caso n° "&(casi)
ruote(1)=r1:ruote(2)=r2:ruote(3)=0: k=14:co=0
nu2(1)=8
nu2(2)=53
nu2(3)=3
nu2(4)=83
co=co+1
ImpostaGiocata co,nu2,ruote,poste,k
nu1(1)=8
nu1(2)=53
nu1(3)=3
nu1(4)=38
nu1(5)=83
nu1(6)=88
co=co+1
ImpostaGiocata co,nu1,ruote,poste,k
Gioca es
End If
Next:Next:Next
Next:Next:Next:next
ScriviResoconto
End Sub
<b>La 2^
Sub main()
Dim ruote(3),posta(5),nu1(10),nu2(10),poste(5),ruota(3),nu3(10)
posta(2)=1

oste(1)=1
dis=9
k=9
ce=50
ini=EstrazioneFin -ce
fin=EstrazioneFin
For es =ini To fin:Messaggio es
For r1=1 To 10
For p1=1 To 5
a=Estratto(es,r1,p1)
For r2=r1+1 To 10
If r2=11 Then r2=11
For p2=1 To 5
b=Estratto(es,r2,p2)
If Distanza(a,b)=45 And p1=p2 Then
casi=casi+1:Scrivi String(65,"•"),1
Scrivi DataEstrazione(es,1)&" [ "&siglaRuota(r1)&" - "& StringaEstratti(es,r1)&_
" ] "&format2(a)&" "&(p1)&"^ pos."
Scrivi DataEstrazione(es,1)&" [ "&siglaRuota(r2)&" - "& StringaEstratti(es,r2)&_
" ] "&format2(b)&" "&(p2)&"^ pos."
Scrivi String(52,"-")&" caso n° "&(casi)
ruote(1)=r1:ruote(2)=r2:ruota(1)=11
c1=DiametraleD(a):c2=DiametraleD(b):c3=Diametrale(c1):c4=Diametrale(c2):c5=DiametraleD(c3):c6=DiametraleD(c4)
nu2(1)=c1:nu2(2)=c2
ImpostaGiocata 1,nu2,ruote,poste,k
nu1(1)=c1:nu1(2)=c2:nu1(3)=c3
nu1(4)=c4:nu1(5)=c5:nu1(6)=c6
ImpostaGiocata 2,nu1,ruote,posta,k
Gioca es
End If
Next:Next:Next:Next:next
ScriviResoconto
Scrivi "distanza 7 ",1
End Sub