i play the keno 40 games

My keno Number Optimizer tool
- Goal: Find the best set of 40 numbers (out of 1–80) that match 18–20 numbers in each of 18 past keno lines.
-
How:
- Uses a fast scoring system to reward "18–20 hits per line".
- Starts with the most frequent numbers, then swaps numbers randomly to improve the score.
- Uses “smart restarts” if no improvement after 1000 tries.
- Runs for 550,000 iterations for high accuracy.
-
Outputs:
- The best set of 40 numbers (comma-separated).
- Line-by-line hit results and summary stats (min, max, average hits, % of lines in the target range).
1st run
╔══════════════════════════════════════════════════════════════════╗
║ OPTIMAL 40 NUMBERS ║
╚══════════════════════════════════════════════════════════════════╝
1 3 10 13 15 17 18 21 23 26
27 28 31 33 34 35 37 38 39 41
42 43 45 46 47 48 53 54 56 58
60 64 66 67 70 74 75 77 78 79
╔══════════════════════════════════════════════════════════════════╗
║ COVERAGE ANALYSIS - FOCUS ON 18-20 RANGE ║
╚══════════════════════════════════════════════════════════════════╝
🎯 PRIMARY TARGET (18-20 hits): 3 / 18 lines (16.7%)
17 hits (close): 0 / 18 lines
16 hits (acceptable): 1 / 18 lines
21 hits (acceptable): 0 / 18 lines
<16 hits (too low): 14 / 18 lines
>21 hits (too high): 0 / 18 lines
Line-by-Line Breakdown:
Line 1: [█████████ ] 9 hits ✗ MISS
Line 2: [███████████████ ] 15 hits △ OK
Line 3: [███████ ] 7 hits ✗ MISS
Line 4: [███████████████ ] 15 hits △ OK
Line 5: [███████████████ ] 15 hits △ OK
Line 6: [███████████████ ] 15 hits △ OK
Line 7: [██████ ] 6 hits ✗ MISS
Line 8: [███████████ ] 11 hits ✗ MISS
Line 9: [██████████████████ ] 18 hits 🎯 TARGET
Line 10: [████████ ] 8 hits ✗ MISS
Line 11: [██████████████████ ] 18 hits 🎯 TARGET
Line 12: [████████████████ ] 16 hits △ OK
Line 13: [█████████ ] 9 hits ✗ MISS
Line 14: [██████████████████ ] 18 hits 🎯 TARGET
Line 15: [████████ ] 8 hits ✗ MISS
Line 16: [████████████ ] 12 hits ✗ MISS
Line 17: [█████████ ] 9 hits ✗ MISS
Line 18: [████████████ ] 12 hits ✗ MISS
╔══════════════════════════════════════════════════════════════════╗
║ STATISTICS ║
╚══════════════════════════════════════════════════════════════════╝
Execution Time: 16.97 seconds (0.28 minutes)
Total Iterations: 50000
Iterations/Second: 2946
Random Restarts: 43
Minimum Hits: 6
Maximum Hits: 18
Average Hits: 12.28
Target Achievement (18-20): 3 / 18 (16.7%)
2nd run
╔══════════════════════════════════════════════════════════════════╗
║ OPTIMAL 40 NUMBERS ║
╚══════════════════════════════════════════════════════════════════╝
1 3 7 8 10 13 14 15 17 18
21 23 25 27 28 31 33 34 35 36
39 41 42 43 46 47 48 51 54 55
58 60 62 63 64 65 67 70 75 77
╔══════════════════════════════════════════════════════════════════╗
║ COVERAGE ANALYSIS - FOCUS ON 18-20 RANGE ║
╚══════════════════════════════════════════════════════════════════╝
🎯 PRIMARY TARGET (18-20 hits): 3 / 18 lines (16.7%)
17 hits (close): 1 / 18 lines
16 hits (acceptable): 0 / 18 lines
21 hits (acceptable): 0 / 18 lines
<16 hits (too low): 14 / 18 lines
>21 hits (too high): 0 / 18 lines
Line-by-Line Breakdown:
Line 1: [██████████ ] 10 hits ✗ MISS
Line 2: [█████████████████ ] 17 hits ○ CLOSE
Line 3: [███████████ ] 11 hits ✗ MISS
Line 4: [███████████████ ] 15 hits △ OK
Line 5: [███████████████ ] 15 hits △ OK
Line 6: [████████████ ] 12 hits ✗ MISS
Line 7: [█████████ ] 9 hits ✗ MISS
Line 8: [█████████ ] 9 hits ✗ MISS
Line 9: [██████████ ] 10 hits ✗ MISS
Line 10: [███████ ] 7 hits ✗ MISS
Line 11: [██████████████████ ] 18 hits 🎯 TARGET
Line 12: [█████████████ ] 13 hits ✗ MISS
Line 13: [████████ ] 8 hits ✗ MISS
Line 14: [███████████████ ] 15 hits △ OK
Line 15: [████████████ ] 12 hits ✗ MISS
Line 16: [██████████████████ ] 18 hits 🎯 TARGET
Line 17: [████████ ] 8 hits ✗ MISS
Line 18: [██████████████████ ] 18 hits 🎯 TARGET
╔══════════════════════════════════════════════════════════════════╗
║ STATISTICS ║
╚══════════════════════════════════════════════════════════════════╝
Execution Time: 17 seconds (0.28 minutes)
Total Iterations: 50000
Iterations/Second: 2942
Random Restarts: 46
Minimum Hits: 7
Maximum Hits: 18
Average Hits: 12.5
Target Achievement (18-20): 3 / 18 (16.7%)
3rd run
╔══════════════════════════════════════════════════════════════════╗
║ OPTIMAL 40 NUMBERS ║
╚══════════════════════════════════════════════════════════════════╝
1 3 8 10 13 14 15 16 17 21
23 25 26 27 28 31 33 34 35 36
39 41 42 43 45 46 47 48 50 51
54 55 58 60 62 63 64 65 70 75
╔══════════════════════════════════════════════════════════════════╗
║ COVERAGE ANALYSIS - FOCUS ON 18-20 RANGE ║
╚══════════════════════════════════════════════════════════════════╝
🎯 PRIMARY TARGET (18-20 hits): 3 / 18 lines (16.7%)
17 hits (close): 0 / 18 lines
16 hits (acceptable): 1 / 18 lines
21 hits (acceptable): 0 / 18 lines
<16 hits (too low): 14 / 18 lines
>21 hits (too high): 0 / 18 lines
Line-by-Line Breakdown:
Line 1: [██████████ ] 10 hits ✗ MISS
Line 2: [███████████████ ] 15 hits △ OK
Line 3: [██████████ ] 10 hits ✗ MISS
Line 4: [███████████████ ] 15 hits △ OK
Line 5: [█████████████ ] 13 hits ✗ MISS
Line 6: [██████████ ] 10 hits ✗ MISS
Line 7: [████████ ] 8 hits ✗ MISS
Line 8: [█████████ ] 9 hits ✗ MISS
Line 9: [█████████ ] 9 hits ✗ MISS
Line 10: [██████ ] 6 hits ✗ MISS
Line 11: [██████████████████ ] 18 hits 🎯 TARGET
Line 12: [███████████████ ] 15 hits △ OK
Line 13: [██████████ ] 10 hits ✗ MISS
Line 14: [████████████████ ] 16 hits △ OK
Line 15: [███████████████ ] 15 hits △ OK
Line 16: [██████████████████ ] 18 hits 🎯 TARGET
Line 17: [█████████ ] 9 hits ✗ MISS
Line 18: [██████████████████ ] 18 hits 🎯 TARGET
╔══════════════════════════════════════════════════════════════════╗
║ STATISTICS ║
╚══════════════════════════════════════════════════════════════════╝
Execution Time: 29.93 seconds (0.5 minutes)
Total Iterations: 90000
Iterations/Second: 3007
Random Restarts: 85
Minimum Hits: 6
Maximum Hits: 18
Average Hits: 12.44
Target Achievement (18-20): 3 / 18 (16.7%)