R
Rubino
Guest
Spazio dedicato a qualche script interessante
solo per
SuperEnalotto o MillionDay
per il resto rivolgersi area download
solo per
SuperEnalotto o MillionDay
per il resto rivolgersi area download
Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
Option Explicit
Sub Main
''''' quante volte sono uscite le sestine nella forma decina e cadenza???
Dim fine,i,p,n,cd,cc,a,d,c,comb,KEY,k,tg
Dim deccad(99),rie(99,2)
fine = EstrazioniArchivioSE
ColoreTesto(1)
Scrivi " S u p e r E n a l o t t o - Bep-Frequenza DECINE-CADENZA nelle sestine estratte ",1
Scrivi "Archivio completo di n.Estrazioni " & fine,1
ColoreTesto(0)
Scrivi "N.Estratti complessivi " & fine*6,1
ColoreTesto(2)
Scrivi "estr. DECINE-CADENZE qta ",1
ColoreTesto(0)
'''leggo archivio estrazioni
For i = 1 To fine
Messaggio(i)
ReDim transitd(99),transitc(99)
comb = ""
For p = 1 To 6
n = EstrattoSE(i,p)
d = DecinaCabalistica(n)
c = Cadenza(n)
transitd(d) = transitd(d) + 1
transitc(c) = transitc(c) + 1
comb = comb & Format2(n) & "."
Next
''''controlla quante decine e quante cadenze
'''conta decine
cd = 0
For a = 0 To 8
If transitd(a) > 0 Then
cd = cd +1
End If
Next
'''conta cadenze
cc = 0
For a = 0 To 9
If transitc(a) > 0 Then
cc = cc +1
End If
Next
Scrivi FormattaStringa(i,"0000") & "/" & DataEstrazioneSE(i) & " " & comb & " ---- dec." & cd & " Cad." & cc
KEY = cd & cc
rie(KEY,1) = rie(KEY,1) + 1
rie(KEY,2) = KEY
Next
'''riepilogo delle formule decine/cadenze e lo uscite per capire le piu frequenti
Scrivi "Riepilogo decina/cadenze le piu frequenti",1
Call OrdinaMatrice(rie,-1,1)
For k = 1 To 99
If rie(k,1) > 0 Then
Scrivi "Formula Dec/Cad " & rie(k,2) & " freq." & rie(k,1)
tg= tg + rie(k,1)
End If
Next
Scrivi "Totale freq. " & tg,1
Scrivi "Totale estrazioni..." & fine,1
End Sub
Option Explicit
Sub Main
'''''' utiliti per sistemazione dati file proveniente da Wuc
''''legge file Wuc Nome "NUOVO.TXT"
''''crea file Matrice.txt (sistemato)
''''''''' Newf = "C:\temp\Matrice.txt" oppure mettici il nome che vuoi
Dim sfileinput,srecord,last,a,b,riga,cl,Newf,lungo,SCELTA,sostF
Newf = InputBox("Inserire nome FileOutput es:Int17-05-05.txt",,"c:\temp\Int-17-05col6188.txt")
sostF = "c:\temp\Matrice.txt"
sfileinput = "c:\temp\nuovo.txt"
Call EliminaFile(Newf)
cl = InputBox("Classe",,5)
'''sostuisce direttamente file c:\temp\Matrice.txt"
SCELTA = InputBox("Vuoi sostituire il file Matrice.txt S/N",,"S")
If SCELTA = "S" Or SCELTA = "s" Then
Call EliminaFile(sostF)
End If
'''' leggi file Input Preveniente da WUC
Call LeggiRigheFileDiTesto(sfileinput,srecord)
last = UBound(srecord)
ColoreTesto(2)
Scrivi "Script: SistemazionedatidaWuc",1
ColoreTesto(0)
Scrivi "File Wuc nome.." & sfileinput,1
Scrivi "File Output nome.." & Newf,1
Scrivi "File contiene n.rec." & last+1
Scrivi "Sostituisci File Matrice.txt di output per futuri usi S/N " & SCELTA ,1
Scrivi "e' stata richiesta la sistemazione in classe.." & cl,1
''
If cl = 5 Then lungo = cl*2+(4)
If cl = 6 Then lungo = cl*2+(5)
'''
For a = 0 To last
riga = ""
riga = Mid(srecord(a),2,lungo)
'
Call ScriviFile(Newf,riga)
Call ScriviFile(sostF,riga)
Next
CloseFileHandle(Newf)
CloseFileHandle(sostF)
''''
ColoreTesto(1)
Scrivi " x scelta NO sostituzione file Matrice - copiare il file o rinominarlo con il Nome...c:\temp\Matrice.txt e sovrascrivere quello eventualmente gia' presente",1
Scrivi "Per essere letto ed usato da altri script statistici o pseudostatistici",1
End Sub
Option Explicit
Sub Main
'''''''''SERVE PRINCIPALMENTE per leggere FILE Matrice da jolla o cover designs o wuc
'''''ma può leggere anche matrici anche grandi
'''''--------------------------------------------------------
Dim sFileBd,Srecord,last,x,qt,t,cg,numeretto,hH,h,ts,tT,ct,K,z,NPda,NPa,NSda,NSa,NUda,NUa
Dim file,record,lastult,selsom,tsd,tsp,Classe,riga,lb,xx,fq,rec
''''file output dopo filtro Pilota
Scrivi "Script Adispo-3",1
sFileBd = "C:\temp\Matrice.txt"
Call LeggiRigheFileDiTesto(sFileBd,Srecord)
last = UBound(Srecord)
ColoreTesto(2)
Scrivi "Leggo combinazioni matrice ...." & last + 1,1
'''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''''''''''''''
file = InputBox("SALVA File nome a Tuo Piacere ",,"C:\Users\Utente\Desktop\LavSuperEnalotto\90.06.03-NP-S13.txt")
Scrivi "Salva File output Nome...." & file,1
Call EliminaFile(file)
'''''''''''''''''''''''''''''''''''''''''
Do While Classe = ""
Classe = InputBox("Classe Matrice 4-5-6 Nr.",,6)
If Classe < 4 Or Classe > 6 Then
MsgBox("possibile solo 4-5-6 Quartina/Cinquina/Sestina ")
Classe = ""
Else
Exit Do
End If
Loop
selsom = InputBox("Filtra Somma D=nPrimi o P=nSecondi o U=Unificati(DP) o T=totale",,"D")
If selsom = "D" Or selsom = "d" Then
NPda = CInt(InputBox("Somma n.Primi da..... ",,24))
NPa = CInt(InputBox("Somma n.Primi a..... ",,24))
End If
If selsom = "P" Or selsom = "p" Then
NSda = CInt(InputBox("Somma n.Secondi da..... ",,38))
NSa = CInt(InputBox("Somma n.Secondi a..... ",,38))
End If
If selsom = "U" Or selsom = "u" Then
NUda = CInt(InputBox("Somma Unificata da..... ",,38))
NUa = CInt(InputBox("Somma Unificata a..... ",,38))
End If
Scrivi "Matrice - " & sFileBd,1
Scrivi "Matrice - classe " & Classe,1
Scrivi "Totale Combinazioni " & last + 1,1
Scrivi "Filtra Somma Numeretti Posizione D=nPrimi o P=nSecondi o U=Unificati(DP) O T=Totale SCELTO O RICHIESTO..( " & selsom & " )",1
ColoreTesto(1)
If selsom = "D" Or selsom = "d" Then Scrivi "N.Primi Presenze da....( " & NPda & " ) a....( " & NPa & " )",1
If selsom = "P" Or selsom = "p" Then Scrivi "N.Secondi Presenze da....( " & NSda & " ) a....( " & NSa & " )",1
If selsom = "U" Or selsom = "u" Then Scrivi "N.Unificati Presenze da....( " & NUda & " ) a....( " & NUa & " )",1
ColoreTesto(0)
Scrivi "La Matrice elabora le CINQUINE O SESTINE , i numeri devono essere divisi da uno spazio vuoto e terminare senza spazi vuoti o punti",1
Scrivi "La Matrice l'ultima riga del file non deve avere righe bianche o senza dati ",1
Scrivi "La Matrice deve terminare con ultima riga valida",1
ColoreTesto(0)
'''loop per leggere file e calcolare combinazioni come da parametri filtro impostati
For x = 0 To last
Messaggio(x & "../.. " & last + 1)
'arrays decodifica
ReDim av(50)
riga = ""
lb =(Classe*2) +(Classe)
riga = Left(Srecord(x),lb)
Call SplitByChar(riga," ",av)
qt = UBound(av)
ReDim NR(50)
'''compondo arrays per numeretti
hH = 0:ts = 0:tsp = 0:tsd = 0
For h = 0 To qt
hH = hH + 1
NR(hH) = Left(Format2(av(h)),1)
hH = hH + 1
NR(hH) = Right(Format2(av(h)),1)
'''' TOTALE
If selsom = "T" Or selsom = "t" Then
ts = ts + Int(av(h))
End If
Next
'''''''''''''''
''''pari o dispari
If selsom = "D" Or selsom = "d" Or selsom = "T" Then
fq = qt*2 + 1
For K = 1 To fq
If dispari(K) = True Then
tsd = tsd + Int(NR(K))
End If
Next
End If
If selsom = "P" Or selsom = "p" Or selsom = "T" Then
fq = qt*2 + 2
For K = 1 To fq
If pari(K) = True Then
tsp = tsp + Int(NR(K))
End If
Next
End If
''''''CALCOLA SOMMA DISPARI O PARI O TOTALE
'''''
If selsom = "d" Or selsom = "D" Then
If tsd >= NPda And tsd <= NPa Then
ct = ct + 1
Scrivi riga
rec = riga
Call ScriviFile(file,rec)
End If
cg = cg + 1
End If
If selsom = "P" Or selsom = "p" Or selsom = "T" Then
If tsp >= NSda And tsp <= NSa Then
ct = ct + 1
Scrivi riga
rec = riga
Call ScriviFile(file,rec)
End If
cg = cg + 1
End If
''''Unificati'''''''''''''''''''''''''''''''''''''''''''''''''
''''pari o dispari
If selsom = "U" Or selsom = "u" Then
fq = qt*2 + 1
For K = 1 To fq
If dispari(K) = True Then
tsd = tsd + Int(NR(K))
End If
Next
End If
If selsom = "U" Or selsom = "U" Then
fq = qt*2 + 2
For K = 1 To fq
If pari(K) = True Then
tsp = tsp + Int(NR(K))
End If
Next
End If
''''''CALCOLA SOMMA DISPARI O PARI O TOTALE
'''''
If selsom = "U" Or selsom = "U" Then
If tsd + tsp >= NUda And tsd + tsp <= NUa Then
ct = ct + 1
Scrivi riga
rec = riga
Call ScriviFile(file,rec)
End If
cg = cg + 1
End If
''''''''
If selsom = "T" Or selsom = "t" Then
Scrivi " Somma Tot." & FormattaStringa(ts,"0000") & " Somma PosD." & Format2(tsd) & " Somma PosP." & Format2(tsp) & " Somma Unificata " & FormattaStringa(tsd + tsp,"000") & " " & riga
ct = ct + 1
cg = cg + 1
End If
Next
CloseFileHandle(file)
Scrivi
Scrivi "Totale combinazioni elab." & x,1
Scrivi
Scrivi "Riepilogo combinazioni filtrate.." & ct,1
Scrivi
Scrivi "Tempo Elab." & TempoTrascorso
End Sub
S u p e r E n a l o t t o Estraz.esaminate tot.16
Riepilogo Punteggi riscontrati
Punteggio 3 Punti n.5
Punteggio 4 Punti n.3
Punteggio 5 Punti n.1
Punteggio 5+1 Punti n.
Punteggio 6 Punti n.
Casi in corso o negativi n.2
Riepilogo Esiti vincenti Riscontrati per n.colpo
Colpo n.1 Casi..10
Colpo n.2 Casi..4
Colpo n.3 Casi..1
Option Explicit
Sub Main
Dim fine,pos,qt,es,ct
fine = EstrazioniArchivioSE
ColoreTesto(1)
Scrivi "-SE-Archivio Sestine con range Numeri da 01:69",1
Scrivi
ColoreTesto(0)
'''calcolo
ReDim pos(6)
For es = 1 To fine
Call Messaggio(es)
qt = 0
ReDim nm(6)
For pos = 1 To 6
If EstrattoSE(es,pos) < 70 Then
qt = qt + 1
nm(qt) = Format2(EstrattoSE(es,pos))
End If
Next
If qt = 6 Then
Scrivi es & " sestina " & StringaNumeri(nm," ")
ct = ct + 1
End If
Next
Scrivi "Nr.Estrazioni in Archivio " & fine,1
ColoreTesto(1)
Scrivi "Nr.Estrazioni con sestina numeri dal 01:69 n.totale " & ct,1
End Sub
Option Explicit
Sub Main
Dim fine,pos,qt,es,ct,pa,di
fine = EstrazioniArchivioSE
ColoreTesto(1)
Scrivi "-SE-Archivio Sestine con range Numeri da 01:69",1
Scrivi
ColoreTesto(0)
'''calcolo
ReDim pos(6)
For es = 1 To fine
Call Messaggio(es)
qt = 0 : pa = 0 : di = 0
ReDim nm(6)
For pos = 1 To 6
If EstrattoSE(es,pos) < 70 Then
qt = qt + 1
nm(qt) = Format2(EstrattoSE(es,pos))
If pari(nm(qt)) = True Then pa = pa + 1
If dispari(nm(qt)) = True Then di = di + 1
End If
Next
If qt = 6 Then
Scrivi es & " sestina " & StringaNumeri(nm," ") & " Pari " & pa & " Dispari " & di
ct = ct + 1
End If
Next
Scrivi "Nr.Estrazioni in Archivio " & fine,1
ColoreTesto(1)
Scrivi "Nr.Estrazioni con sestina numeri dal 01:69 n.totale " & ct,1
End Sub