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 the complete EuroMillions draw history.
2. Gap calculation
Determination of the number of draws since the last appearance of each number and each star.
3. Temporal weighting
Application of weighting coefficients favouring the last 2 years ("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 frequent (hot) numbers |
balanced |
Balance between frequencies and gaps |
recent |
Strong weighting on recent trends |
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.