Baciccia4251
Advanced Member >GOLD<
Il seguente Scripr:
Sub Main
'array come vettore
Dim nu(1),T,V,aN(5)
'-------------------------
Ini = 8072'EstrazioneIni
fin = EstrazioneFin
'-------------------------
scelta = InputBox("Scelta Ruote" & Chr(13) & Chr(13) & "1 - VenusNord" & Chr(13) & "2 - VenusSud" & Chr(13) & "3- VenusCentro",,1)
'----------------------------------
nord = Array(nord,5,4,9,10)
sud = Array(sud,6,1,7)
centro = Array(centro,8,2,3,12)
'----------------------------------
T = Array(T,"Numeri","Ritardo","RitMax","IncrMax","Frequenza","Ritardo Venus","Ultima Sortita Estratto")
Call InitTabella(T,,,,,"Arial Black")
'---------------------------------------------
If scelta = 1 Then ruote = nord
If scelta = 1 Then Venus = "VenusNord Milano"
If scelta = 2 Then ruote = sud
If scelta = 2 Then Venus = "VenusSud Napoli"
If scelta = 3 Then ruote = centro
If scelta = 3 Then Venus = "VenusCentro Roma"
'---------------------------------------------
Scrivi "Ruote scelte.... " & Venus '& vbTab & StringaRuote(ruote)
Scrivi "Aggiornato alla estrazione : " & GetInfoEstrazione(fin),1
'--------------------------------------------------------------------
For n = 1 To 90
nu(1) = n
Call StatisticaFormazione(nu,ruote,1,rit,max,Incr,fre,Ini,fin)
Call VerificaEsito(nu,ruote,EstrazioneFin - rit,1,,,esito,,esa,id,RetRuote)
'-------------------------------------------------------------------------
If EstrattoFrequenza(ruote(1),n,fin - rit,fin - rit) > 0 Then RuotaRif = 1
If EstrattoFrequenza(ruote(2),n,fin - rit,fin - rit) > 0 Then RuotaRif = 2
If EstrattoFrequenza(ruote(3),n,fin - rit,fin - rit) > 0 Then RuotaRif = 3
If UBound(Ruote) = 4 Then
If EstrattoFrequenza(ruote(4),n,fin - rit,fin - rit) > 0 Then RuotaRif = 4
End If
'-------------------------------------------------------------------------
For r = 1 To UBound(ruote)
For p = 1 To 5
aN(p) = Estratto(fin - rit,ruote(r),p)
If aN(p) = n Then
rigasortiti = rigasortiti & GetTestoHtml(Format2(aN(p)) & " ",1,2)
Else
rigasortiti = rigasortiti & GetTestoHtml("-- " & " ",1,0)
End If
Next
Next
'------------------------------------------------------------
V = Array(V,StringaNumeri(nu),rit,max,incr,fre,(rit*4) + RuotaRif - 1,RuotaRif & " Estrazione " & rigasortiti)
Call AddRigaTabella(V)
RuotaRif = 0
rigasortiti = ""
Next
Call SetTableWidth("100%")
'.....................................................................
Call CreaTabella(2)' ordina per ritardo
End Sub
Dà per Venus Centro (CA-FI-NZ) per il numero 20 il seguente risultato (dopo l'estrazione del 17 c.m.):

Però il 20 tarda da 22 estrazioni su queste ruote

Stavo creando un foglio chiamato Venus e dopo riportato i dati, solo per quel numero, mi dava risultati diversi (beh! in verità non li ho controllati tutti e 90)

Qualcuno può controllare se sono io che vedo le Sirene o cosa?
Grazie, vi permetterò sempre d'offrirmi un pranzo.
Baciccia
Sub Main
'array come vettore
Dim nu(1),T,V,aN(5)
'-------------------------
Ini = 8072'EstrazioneIni
fin = EstrazioneFin
'-------------------------
scelta = InputBox("Scelta Ruote" & Chr(13) & Chr(13) & "1 - VenusNord" & Chr(13) & "2 - VenusSud" & Chr(13) & "3- VenusCentro",,1)
'----------------------------------
nord = Array(nord,5,4,9,10)
sud = Array(sud,6,1,7)
centro = Array(centro,8,2,3,12)
'----------------------------------
T = Array(T,"Numeri","Ritardo","RitMax","IncrMax","Frequenza","Ritardo Venus","Ultima Sortita Estratto")
Call InitTabella(T,,,,,"Arial Black")
'---------------------------------------------
If scelta = 1 Then ruote = nord
If scelta = 1 Then Venus = "VenusNord Milano"
If scelta = 2 Then ruote = sud
If scelta = 2 Then Venus = "VenusSud Napoli"
If scelta = 3 Then ruote = centro
If scelta = 3 Then Venus = "VenusCentro Roma"
'---------------------------------------------
Scrivi "Ruote scelte.... " & Venus '& vbTab & StringaRuote(ruote)
Scrivi "Aggiornato alla estrazione : " & GetInfoEstrazione(fin),1
'--------------------------------------------------------------------
For n = 1 To 90
nu(1) = n
Call StatisticaFormazione(nu,ruote,1,rit,max,Incr,fre,Ini,fin)
Call VerificaEsito(nu,ruote,EstrazioneFin - rit,1,,,esito,,esa,id,RetRuote)
'-------------------------------------------------------------------------
If EstrattoFrequenza(ruote(1),n,fin - rit,fin - rit) > 0 Then RuotaRif = 1
If EstrattoFrequenza(ruote(2),n,fin - rit,fin - rit) > 0 Then RuotaRif = 2
If EstrattoFrequenza(ruote(3),n,fin - rit,fin - rit) > 0 Then RuotaRif = 3
If UBound(Ruote) = 4 Then
If EstrattoFrequenza(ruote(4),n,fin - rit,fin - rit) > 0 Then RuotaRif = 4
End If
'-------------------------------------------------------------------------
For r = 1 To UBound(ruote)
For p = 1 To 5
aN(p) = Estratto(fin - rit,ruote(r),p)
If aN(p) = n Then
rigasortiti = rigasortiti & GetTestoHtml(Format2(aN(p)) & " ",1,2)
Else
rigasortiti = rigasortiti & GetTestoHtml("-- " & " ",1,0)
End If
Next
Next
'------------------------------------------------------------
V = Array(V,StringaNumeri(nu),rit,max,incr,fre,(rit*4) + RuotaRif - 1,RuotaRif & " Estrazione " & rigasortiti)
Call AddRigaTabella(V)
RuotaRif = 0
rigasortiti = ""
Next
Call SetTableWidth("100%")
'.....................................................................
Call CreaTabella(2)' ordina per ritardo
End Sub
Dà per Venus Centro (CA-FI-NZ) per il numero 20 il seguente risultato (dopo l'estrazione del 17 c.m.):

Però il 20 tarda da 22 estrazioni su queste ruote

Stavo creando un foglio chiamato Venus e dopo riportato i dati, solo per quel numero, mi dava risultati diversi (beh! in verità non li ho controllati tutti e 90)

Qualcuno può controllare se sono io che vedo le Sirene o cosa?
Grazie, vi permetterò sempre d'offrirmi un pranzo.
Baciccia