Overview
HYBRIDE is the computational engine at the heart of the LotoIA platform. It combines several analytical approaches to generate statistically optimised EuroMillions grids.
Type : Hybrid engine (statistics + heuristics)
Format : 5 numbers (1-50) + 2 stars (1-12)
Methodology : "5 years + 2"
Infrastructure : Google Cloud Run (serverless)
Database : Cloud SQL (MySQL)
Technical architecture
Backend API
- Framework : FastAPI (Python 3.13+)
- Endpoints : REST API with OpenAPI documentation
- Authentication : Public endpoints (read-only)
- Compression : GZip middleware for optimisation
Cloud Infrastructure
- Compute : Google Cloud Run (auto-scaling)
- Database : Cloud SQL MySQL (high availability)
- CDN : Optimised cache headers for static assets
- Region : Google Cloud — European Union
Algorithms
1. Frequency analysis
Calculation of the appearance frequency of each number (1-50) and each star (1-12) over three windows: the last 5 years, the last 2 years and the entire available history.
2. Gap calculation
Determination of the number of draws since the last appearance of each number and each star.
3. Temporal weighting
Combination of the three analysis windows: recent draws, which appear in all three, carry more weight ("5 years + 2" methodology).
4. Multi-criteria scoring
Evaluation of each candidate grid based on:
- Odd/even balance
- Low/high distribution
- Dispersion (min-max spread)
- Total sum
- Pattern detection (sequences)
- Stars evaluated separately (1-12)
5. Optimal selection
Filtering and ranking grids by decreasing convergence level.
API Endpoints
GET /api/euromillions/generate?n=3&mode=balanced
GET /api/euromillions/stats
GET /api/euromillions/numbers-heat
GET /api/euromillions/tirages/latest
GET /health
Generation modes
| Mode | Description |
|---|---|
conservative |
Favours long-term history. Ideal if you prefer numbers that have proven themselves over time. |
balanced |
Balanced spread across the 3 periods. This is the default mode, used by the site's generator; the other two modes can be requested from the HYBRIDE chatbot. |
recent |
For those who want more variety in the suggested grids. |
The HYBRIDE engine is a statistical analysis tool.
It does not predict future draw results. EuroMillions remains a game of chance where each draw is independent. Probability of winning the jackpot: 1 in 139,838,160.
LotoIA is not a gambling operator and does not sell any grids.