hello=
does not directly depend on recent draws (uses symmetry/combinatorics instead of historical frequency),
works with zones of higher probability (expected distributions by groups),
eliminates "weak" combinations (structural imbalance),
and also maximizes diversity among your games.
---
# "Zones + Balance + Diversity" (ZED) System
## 1) Game Parameterization (generic)
Define:
N = total number of numbers on the ticket.
k = numbers per bet.
Clusters ("zones"): partitions of the universe that reflect symmetry, not history. Use 5 views:
1. **Low/Medium/High** (terciles): `Z1=[1..⌊N/3⌋]`, `Z2`, `Z3`.
2. **Decades** (1–10, 11–20, …).
3. **Parity** (even × odd).
4. **Remainder mod 3** (0,1,2).
5. **Final Digits** (0–9).
> These views create “zones” where the **expected distribution** is approximately uniform by symmetry (without looking at past draws).
## 2) Balance Ranges (without looking at history)
For each view, set **acceptable ranges** (intervals) near the expected value `k * (zone_size / N)`:
* **Even/Odd**: avoid extremes; e.g., Lotofácil (k=15) → 6–9 odd numbers.
* **Low/Medium/High** (terciles): something like 3–7 in each half and 2–6 per tercile.
* **Module 3**: ensure mixing (e.g., no class < 2; none > k–(minimum of the others)).
* **Decades**: limit concentration (e.g., max. 4 in the same decade).
* **Final Digits**: limit repetitions (e.g., max. 3 per final; max. 2 finals repeated >2x).
**Total sum**: Keep it around `k * (N+1)/2` (center), with a window (e.g., ±10% of k\*N/2).
**Consecutive sequences**: Allow but **limit** (e.g., up to 2 sequences, each with a maximum of 3 numbers).
**Multiplicity “5/10/…“**: Avoid excessive multiples of 5/10.
**Repetition of the last draw**: Optional, **not mandatory** (e.g., limit repetition to >50% of the numbers from the last draw only if desired; the system doesn't require it).
> These rules **naturally eliminate weak combinations** (too concentrated in one decade, all even, very low/high sum, too many repeated endings, etc.).
## 3) Scoring Function
Instead of just "pass/fail," use a **score** to rank and choose the best games:
**Score = 100 – (PEN_parity + PEN_terciles + PEN_mod3 + PEN_decades + PEN_finals + PEN_sum + PEN_consecutives + PEN_multiples5 + PEN_diversity)**
* Each **PEN_** is 0 if within the range; otherwise, it increases linearly (or quadratically) with the violation.
* **Diversity** (between your games): penalize large **intersections** between two games (e.g., if 10+ numbers in common in k=15, penalize heavily). This spreads the coverage.
Select **the M games with the highest score** (e.g., M=20, 40, 60…).
## 4) Generator (sampling + pruning + optimization)
1. Sample tens uniformly from the universe (without looking at history).
2. Quick Pruning: Discard those who violate “hard” limits (e.g., >4 in the same decade, >3 equal endings, sum outside the large window, etc.).
3. Score: Compute the remaining penalties.
4. Progressive Diversity: For each game chosen, increase the penalty by intersection with those already chosen.
5. Stop when reaching M games.
## 5) Ready-made Presets (examples)
### Mega-Sena (N=60, k=6)
* Even/Odd: 2–4 odd numbers.
* Terciles (1–20, 21–40, 41–60): minimum 1 per tercile; maximum 3 in the same tercile.
* Decades: max. 3 in the same decade.
* Mod 3: no groups with 0; avoid 5/1/0.
* Endings: max. 2 per ending; avoid 3 of the same number.
* Consecutives: max. 1 sequence and with length ≤ 3.
* Sum: window \~ \[90, 210] (flexible).
* Multiples of 5: max. 2.
### Lotofácil (N=25, k=15)
* Even/Odd: 6–9 odd numbers.
* Halves (1–13, 14–25): 6–9 per half.
* Mod 3: each class with 3–7.
* Decades (1–10, 11–20, 21–25): max. 7/7/6; minimum 2/2/2. * Endings: max. 3 per ending; max. 2 endings with repetition >2.
* Consecutives: up to 2 sequences, each ≤ 3.
* Sum: central window (e.g., 150–210).
* Multiples of 5: max. 4.
### +Millionaire (main field, no clovers; adapt N and k from your strategy)
* Even/Odd: ±1 of the expected.
* Terciles: 2–6 per tercile (if k=10, for example).
* Decades: max. 4 in the same.
* Mod 3: no empty classes.
* Rest the same as the principles above.
> Adjust the ranges to your liking, but always keep **center + tolerance** (never extremes).
---
## 6) How to use (practical step-by-step)
1. **Choose the game** and copy the corresponding preset.
2. **Set M** (how many games you want).
3. **Generate candidates** (pure random) and apply:
* **Hard filter** (eliminates obvious weaknesses).
* **Score** (ranks).
* **Diversity** (avoids “clones”).
4. **Grab the Top-M** and you're done.
---
## 7) Spreadsheet (simple template)
Columns per game (or per row = 1 game):
* `N1..Nk` (the tens).
* `#Even`, `#Odd`, `#Low`, `#Medium`, `#High`, `#Decade_01..`, `#mod0,#mod1,#mod2`, `#final_0..9`, `#consecutive_max`, `sum`, `#multiple