| Dodaj wpis w tym temacie
Spis tematów | Strona: 1 Wyślij wiadomość do admina |
| Przewiń wpisy ↓ | "Po co czekać tydzień na rozczarowanie, skoro można go mieć w każdej sekundzie?" |
2026-01-27 (21:04) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 599 596 [ CZCIONKA MONOSPACE ] https://geekweek.interia.pl/gry/news-grasz-w-lotto-ta-strona-pokazuje-dlaczego-nie-wygrywasz,nId,22506929 https://lotteryeverysecond.lffl.me/ -[PL]-: Astronomiczne szanse. Oglądasz dwie loterie rozgrywane co jedną sekundę. Każda sekunda to nowa szansa na wielką wygraną. Ale porozmawiajmy o tym, co naprawdę byłoby potrzebne, aby wygrać. Szansa na trafienie jackpota w Powerball wynosi 1 do 292 201 338. W EuroJackpot jest nieco lepiej — 1 do 139 838 160. To liczby tak ogromne, że nasz mózg przestaje je rozumieć. Ta strona postanawia przedstawić te absurdalnie wielkie wartości w formie czasu. Jeśli ta strona działałaby 24/7, grając w obie loterie co sekundę, oto ile średnio zajęłoby trafienie jackpota: Powerball: około 4,6 roku nieprzerwanej gry, sekunda po sekundzie, aby zobaczyć jedną wygraną. EuroJackpot: około 2,2 roku ciągłej gry, aby doczekać się jackpota. I to przy grze co sekundę. A człowiek kupujący jeden los tygodniowo? Musiałby grać w Powerball przez około 5,6 miliona lat, aby mieć 50% szans na jedną wygraną. Neandertalczycy wymarli zaledwie 40 000 lat temu. Ludzie istnieją około 300 000 lat. Musiałbyś przeżyć całą historię współczesnego człowieka 18 razy. Masz większą szansę, że: uderzy w Ciebie piorun (1 do 15 300), zostaniesz gwiazdą filmową (1 do 1 505 000), dostaniesz królewskiego pokera w pierwszym rozdaniu (1 do 649 740), …niż że wygrasz jackpot w loterii. Ta strona istnieje po to, by tę absurdalność uwidocznić. Patrz, jak liczby się przewijają. Patrz, jak nigdy się nie zgadzają. Czuj upływające sekundy. Wyobrażaj sobie koszt każdego losu. Każda mijająca sekunda to statystyka działająca dokładnie tak, jak powinna. -[PL]- Czy maszyna losująca i gracz to "taki sam silnik"? https://github.com/Loeffeldude/lotteryeverysecond |
2026-01-27 (21:53) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 599 605 [ CZCIONKA MONOSPACE ] Sprawdziłem z pomocą AI:: :: Kluczowy fragment: funkcja RNG W repozytorium znajduje się jedna funkcja odpowiedzialna za losowanie liczb. Zarówno „Official Draw”, jak i „Your Pick” korzystają z tej samej funkcji, która opiera się na: Math.random() (standardowy generator pseudolosowy w JavaScript) oraz tej samej logiki dobierania liczb z zakresu gry. Nie ma drugiego, alternatywnego silnika. Nie ma osobnych algorytmów dla gracza i dla maszyny. :: A jak przedstawiałyby się wyniki, gdyby istniał drugi "alternatywny silnik" w algorytmie dla gracza? |
2026-01-27 (22:21) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 599 612 [ CZCIONKA MONOSPACE ] Myślę sobie jakby zrobić taką stronę dla Lotto i Mini Lotto. Z uwagi na fakt, że nie mam bladego pojęcia o programowaniu to wykorzystam AI:: :: Repozytorium Loeffeldude/lotteryeverysecond jest udostępnione na GitHubie na licencji MIT. To jedna z najbardziej liberalnych licencji open‑source. Co MIT pozwala: używać kodu w projektach prywatnych i komercyjnych modyfikować go kopiować publikować własną wersję Co MIT wymaga: zachować informację o oryginalnym autorze (czyli zostawić plik LICENSE i krótką wzmiankę w stopce lub w kodzie) I to wszystko. Czy musisz pytać autora o zgodę? Nie musisz. Licencja MIT już daje Ci zgodę. Możesz napisać do autora z podziękowaniem, ale nie jest to wymagane. :: Poniżej koddla 6z49 i 5z42:: :: <!DOCTYPE html> <html lang="pl"> <head> <meta charset="UTF-8"> <title>Lotto & Mini Lotto – co sekundę</title> <style> body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0b1020; color: #f5f5f5; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; } header { text-align: center; margin-top: 30px; margin-bottom: 20px; } h1 { margin: 0; font-size: 28px; } h2 { margin: 10px 0 0; font-weight: 400; font-size: 16px; color: #ccc; } .games { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 40px; } .game { background: #151b30; border-radius: 10px; padding: 20px; min-width: 280px; box-shadow: 0 0 20px rgba(0,0,0,0.4); } .game-title { font-size: 20px; margin-bottom: 10px; } .row-label { font-size: 13px; color: #aaa; margin-bottom: 4px; } .numbers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .ball { width: 32px; height: 32px; border-radius: 50%; background: #ffcc00; color: #000; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; } .ball.mini { background: #00d4ff; } .match-info { font-size: 13px; color: #9fe29f; margin-bottom: 10px; } .time { font-size: 13px; color: #aaa; } footer { margin-top: auto; margin-bottom: 20px; font-size: 11px; color: #777; text-align: center; } a { color: #7fb3ff; } </style> </head> <body> <header> <h1>Lotto & Mini Lotto – losowanie co sekundę</h1> <h2>Symulacja – nie jest to oficjalna strona Totalizatora Sportowego</h2> </header> <div class="games"> <div class="game" id="lotto-game"> <div class="game-title">Lotto (6 z 49)</div> <div class="row-label">Oficjalne losowanie (symulacja)</div> <div class="numbers" id="lotto-official"></div> <div class="row-label">Twój typ (symulacja)</div> <div class="numbers" id="lotto-player"></div> <div class="match-info" id="lotto-match"></div> <div class="time" id="lotto-time"></div> </div> <div class="game" id="mini-game"> <div class="game-title">Mini Lotto (5 z 42)</div> <div class="row-label">Oficjalne losowanie (symulacja)</div> <div class="numbers" id="mini-official"></div> <div class="row-label">Twój typ (symulacja)</div> <div class="numbers" id="mini-player"></div> <div class="match-info" id="mini-match"></div> <div class="time" id="mini-time"></div> </div> </div> <footer> Kod inspirowany projektem „lotteryeverysecond”. To tylko demonstracja matematyczna, nie prawdziwa gra losowa. </footer> <script> // Prosty deterministyczny generator liczb pseudolosowych (LCG) function createRng(seed) { let state = seed >>> 0; return function() { // parametry LCG (klasyczne) state = (1664525 * state + 1013904223) >>> 0; return state / 0xFFFFFFFF; }; } // Tworzymy "seed" na podstawie czasu – dzięki temu // w tej samej sekundzie wszyscy widzą to samo. function getTimeSeed(offset = 0) { const now = new Date(); const base = now.getUTCFullYear() * 100000000 + (now.getUTCMonth() + 1) * 1000000 + now.getUTCDate() * 10000 + now.getUTCHours() * 100 + now.getUTCMinutes(); const seed = base * 100 + now.getUTCSeconds() + offset; return seed >>> 0; } // Losowanie unikalnych liczb z zakresu [1, max], count sztuk function drawNumbers(count, max, rng) { const nums = []; while (nums.length < count) { const n = 1 + Math.floor(rng() * max); if (!nums.includes(n)) { nums.push(n); } } nums.sort((a, b) => a - b); return nums; } function renderBalls(container, numbers, isMini) { container.innerHTML = ""; numbers.forEach(n => { const div = document.createElement("div"); div.className = "ball" + (isMini ? " mini" : ""); div.textContent = n; container.appendChild(div); }); } function countMatches(a, b) { return a.filter(x => b.includes(x)).length; } function formatTime() { const now = new Date(); return now.toLocaleString("pl-PL"); } function updateGame() { // Lotto 6 z 49 const lottoOfficialSeed = getTimeSeed(0); const lottoPlayerSeed = getTimeSeed(12345); // inny offset, żeby typ był niezależny const lottoOfficialRng = createRng(lottoOfficialSeed); const lottoPlayerRng = createRng(lottoPlayerSeed); const lottoOfficial = drawNumbers(6, 49, lottoOfficialRng); const lottoPlayer = drawNumbers(6, 49, lottoPlayerRng); const lottoOfficialDiv = document.getElementById("lotto-official"); const lottoPlayerDiv = document.getElementById("lotto-player"); const lottoMatchDiv = document.getElementById("lotto-match"); const lottoTimeDiv = document.getElementById("lotto-time"); renderBalls(lottoOfficialDiv, lottoOfficial, false); renderBalls(lottoPlayerDiv, lottoPlayer, false); const lottoMatches = countMatches(lottoOfficial, lottoPlayer); lottoMatchDiv.textContent = `Trafienia: ${lottoMatches} z 6`; lottoTimeDiv.textContent = `Czas losowania (wspólny dla wszystkich): ${formatTime()}`; // Mini Lotto 5 z 42 const miniOfficialSeed = getTimeSeed(777); const miniPlayerSeed = getTimeSeed(98765); const miniOfficialRng = createRng(miniOfficialSeed); const miniPlayerRng = createRng(miniPlayerSeed); const miniOfficial = drawNumbers(5, 42, miniOfficialRng); const miniPlayer = drawNumbers(5, 42, miniPlayerRng); const miniOfficialDiv = document.getElementById("mini-official"); const miniPlayerDiv = document.getElementById("mini-player"); const miniMatchDiv = document.getElementById("mini-match"); const miniTimeDiv = document.getElementById("mini-time"); renderBalls(miniOfficialDiv, miniOfficial, true); renderBalls(miniPlayerDiv, miniPlayer, true); const miniMatches = countMatches(miniOfficial, miniPlayer); miniMatchDiv.textContent = `Trafienia: ${miniMatches} z 5`; miniTimeDiv.textContent = `Czas losowania (wspólny dla wszystkich): ${formatTime()}`; } // Aktualizacja co sekundę – jak w lotteryeverysecond updateGame(); setInterval(updateGame, 1000); </script> </body> </html> :: Powyższy kod wklejamy do notatnika i zapisujemy z rozszerzeniem *.html, a następnie odpalamy w przeglądarce, albo wklejamy kod na stronie: https://codepen.io/pen/ Działa. --- wpis edytowano 2026-01-27 22:24 --- |
2026-01-27 (22:37) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 599 621 [ CZCIONKA MONOSPACE ] Powyższe to wersja bez statystki trafień. |
2026-01-28 (00:09) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 599 645 [ CZCIONKA MONOSPACE ] W kodzie poniżej dodano "licznik trafień" oraz "czas trwania symulacji":: :: <!DOCTYPE html> <html lang="pl"> <head> <meta charset="UTF-8"> <title>Lotto & Mini Lotto – co sekundę + statystyki</title> <style> body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0b1020; color: #f5f5f5; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; } header { text-align: center; margin-top: 30px; margin-bottom: 20px; } h1 { margin: 0; font-size: 28px; } h2 { margin: 10px 0 0; font-weight: 400; font-size: 16px; color: #ccc; } .games { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 40px; } .game { background: #151b30; border-radius: 10px; padding: 20px; min-width: 280px; box-shadow: 0 0 20px rgba(0,0,0,0.4); } .game-title { font-size: 20px; margin-bottom: 10px; } .row-label { font-size: 13px; color: #aaa; margin-bottom: 4px; } .numbers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .ball { width: 32px; height: 32px; border-radius: 50%; background: #ffcc00; color: #000; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; } .ball.mini { background: #00d4ff; } .match-info { font-size: 13px; color: #9fe29f; margin-bottom: 10px; } .time { font-size: 13px; color: #aaa; margin-bottom: 10px; } /* --- TABELKI --- */ .hits-table { margin-top: 10px; font-size: 12px; border-collapse: collapse; width: 100%; } .hits-table th, .hits-table td { border: 1px solid #1f2937; padding: 6px 8px; text-align: center; } .hits-table th { background: #0f172a; color: #e2e8f0; font-weight: 600; } .hits-table td.label { text-align: left; font-weight: 500; color: #f1f5f9; } footer { margin-top: auto; margin-bottom: 20px; font-size: 11px; color: #777; text-align: center; } </style> </head> <body> <header> <h1>Lotto & Mini Lotto – losowanie co sekundę</h1> <h2>Symulacja – nie jest to oficjalna strona Totalizatora Sportowego</h2> </header> <div class="games"> <!-- ================= LOTTO ================= --> <div class="game" id="lotto-game"> <div class="game-title">Lotto (6 z 49)</div> <div class="row-label">Oficjalne losowanie</div> <div class="numbers" id="lotto-official"></div> <div class="row-label">Twój typ</div> <div class="numbers" id="lotto-player"></div> <div class="match-info" id="lotto-match"></div> <div class="time" id="lotto-time"></div> <!-- TABELA LOTTO --> <table class="hits-table"> <thead> <tr> <th>Trafienia</th> <th>Ilość</th> <th>Wypłata za trafienie</th> </tr> </thead> <tbody> <tr><td class="label">6</td><td id="lotto-hit-6">0</td><td></td></tr> <tr><td class="label">5</td><td id="lotto-hit-5">0</td><td></td></tr> <tr><td class="label">4</td><td id="lotto-hit-4">0</td><td></td></tr> <tr><td class="label">3</td><td id="lotto-hit-3">0</td><td></td></tr> <tr><td class="label">2</td><td id="lotto-hit-2">0</td><td></td></tr> <tr><td class="label">1</td><td id="lotto-hit-1">0</td><td></td></tr> <tr><td class="label">0</td><td id="lotto-hit-0">0</td><td></td></tr> </tbody> </table> </div> <!-- ================= MINI LOTTO ================= --> <div class="game" id="mini-game"> <div class="game-title">Mini Lotto (5 z 42)</div> <div class="row-label">Oficjalne losowanie</div> <div class="numbers" id="mini-official"></div> <div class="row-label">Twój typ</div> <div class="numbers" id="mini-player"></div> <div class="match-info" id="mini-match"></div> <div class="time" id="mini-time"></div> <!-- TABELA MINI LOTTO --> <table class="hits-table"> <thead> <tr> <th>Trafienia</th> <th>Ilość</th> <th>Wypłata za trafienie</th> </tr> </thead> <tbody> <tr><td class="label">5</td><td id="mini-hit-5">0</td><td></td></tr> <tr><td class="label">4</td><td id="mini-hit-4">0</td><td></td></tr> <tr><td class="label">3</td><td id="mini-hit-3">0</td><td></td></tr> <tr><td class="label">2</td><td id="mini-hit-2">0</td><td></td></tr> <tr><td class="label">1</td><td id="mini-hit-1">0</td><td></td></tr> <tr><td class="label">0</td><td id="mini-hit-0">0</td><td></td></tr> </tbody> </table> </div> </div> <!-- ===== LICZNIK CZASU ===== --> <div class="game" style="margin-top:20px; background:#10182f; padding:15px; border-radius:10px;"> <div class="game-title">Licznik czasu symulacji</div> <div class="row-label">Łączna liczba losowań (sekund):</div> <div class="match-info" id="total-draws">0</div> <div class="row-label">Czas trwania symulacji:</div> <div class="match-info" id="elapsed-time">0 sekund</div> </div> <footer> Kod inspirowany projektem „lotteryeverysecond”. To tylko demonstracja matematyczna. </footer> <script> /* ====== RNG ====== */ function createRng(seed) { let state = seed >>> 0; return function() { state = (1664525 * state + 1013904223) >>> 0; return state / 0xFFFFFFFF; }; } function getTimeSeed(offset = 0) { const now = new Date(); const base = now.getUTCFullYear() * 100000000 + (now.getUTCMonth() + 1) * 1000000 + now.getUTCDate() * 10000 + now.getUTCHours() * 100 + now.getUTCMinutes(); return (base * 100 + now.getUTCSeconds() + offset) >>> 0; } function drawNumbers(count, max, rng) { const nums = []; while (nums.length < count) { const n = 1 + Math.floor(rng() * max); if (!nums.includes(n)) nums.push(n); } return nums.sort((a,b)=>a-b); } function renderBalls(container, numbers, isMini) { container.innerHTML = ""; numbers.forEach(n => { const div = document.createElement("div"); div.className = "ball" + (isMini ? " mini" : ""); div.textContent = n; container.appendChild(div); }); } function countMatches(a, b) { return a.filter(x => b.includes(x)).length; } /* ====== STATYSTYKI ====== */ const stats = { lotto: { hits: {0:0,1:0,2:0,3:0,4:0,5:0,6:0} }, mini: { hits: {0:0,1:0,2:0,3:0,4:0,5:0} } }; function updateStatsUI() { for (let i=0;i<=6;i++) { const el = document.getElementById("lotto-hit-"+i); if (el) el.textContent = stats.lotto.hits[i]; } for (let i=0;i<=5;i++) { const el = document.getElementById("mini-hit-"+i); if (el) el.textContent = stats.mini.hits[i]; } } /* ====== LICZNIK CZASU ====== */ let startTimestamp = Date.now(); let totalDraws = 0; function formatDuration(seconds) { let sec = seconds; const years = Math.floor(sec / (365 * 24 * 3600)); sec -= years * 365 * 24 * 3600; const days = Math.floor(sec / (24 * 3600)); sec -= days * 24 * 3600; const hours = Math.floor(sec / 3600); sec -= hours * 3600; const minutes = Math.floor(sec / 60); sec -= minutes * 60; return `${years} lat, ${days} dni, ${hours} godzin, ${minutes} minut, ${sec} sekund`; } function updateTimer() { const now = Date.now(); const elapsedSeconds = Math.floor((now - startTimestamp) / 1000); totalDraws = elapsedSeconds; document.getElementById("total-draws").textContent = totalDraws; document.getElementById("elapsed-time").textContent = formatDuration(elapsedSeconds); } setInterval(updateTimer, 1000); updateTimer(); /* ====== GŁÓWNA SYMULACJA ====== */ function updateGame() { /* --- LOTTO --- */ const lottoOfficial = drawNumbers(6,49,createRng(getTimeSeed(0))); const lottoPlayer = drawNumbers(6,49,createRng(getTimeSeed(12345))); renderBalls(document.getElementById("lotto-official"), lottoOfficial, false); renderBalls(document.getElementById("lotto-player"), lottoPlayer, false); const Lmatch = countMatches(lottoOfficial, lottoPlayer); document.getElementById("lotto-match").textContent = `Trafienia: ${Lmatch} z 6`; document.getElementById("lotto-time").textContent = new Date().toLocaleString("pl-PL"); stats.lotto.hits[Lmatch]++; /* --- MINI LOTTO --- */ const miniOfficial = drawNumbers(5,42,createRng(getTimeSeed(777))); const miniPlayer = drawNumbers(5,42,createRng(getTimeSeed(98765))); renderBalls(document.getElementById("mini-official"), miniOfficial, true); renderBalls(document.getElementById("mini-player"), miniPlayer, true); const Mmatch = countMatches(miniOfficial, miniPlayer); document.getElementById("mini-match").textContent = `Trafienia: ${Mmatch} z 5`; document.getElementById("mini-time").textContent = new Date().toLocaleString("pl-PL"); stats.mini.hits[Mmatch]++; updateStatsUI(); } updateGame(); setInterval(updateGame, 1000); </script> </body> </html> :: |
2026-01-28 (00:26) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 599 649 [ CZCIONKA MONOSPACE ] Kiedy odpaliłem ww. kod za pierwszym razem, przed północą, to pierwsze 4/6 pojawiło się "już" po 200 sekundach. Za drugim razem po 21 minutach. Ale pamiętajmy to "tylko" symulacje z wykorzystaniem: Math.random() (standardowy generator pseudolosowy w JavaScript) po stronie "maszyny losującej" i po stronie "gracza". |
2026-01-28 (00:37) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 599 651 [ CZCIONKA MONOSPACE ] Po 2000 [s] mamy pierwszą 5/6: ![]() |
2026-01-29 (23:18) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 599 960 [ CZCIONKA MONOSPACE ] 390[s] - 3x7 ![]() |
2026-01-30 (16:38) HYCHYC2Data rejestracji: 2011-05-21 Ilość postów: 756 | wpis nr 1 600 072 [ CZCIONKA MONOSPACE ] To jest moj wynik: ![]() |
2026-01-30 (23:08) HYCHYC2Data rejestracji: 2011-05-21 Ilość postów: 756 | wpis nr 1 600 124 [ CZCIONKA MONOSPACE ] ![]() |
2026-01-31 (12:20) Jan69Data rejestracji: 2015-09-19 Ilość postów: 467 | wpis nr 1 600 204 [ CZCIONKA MONOSPACE ] Ponad 170 lat grania bez trafienia głównej wygranej |
2026-01-31 (18:42) brunetData rejestracji: 2023-04-24 Ilość postów: 17 | wpis nr 1 600 242 [ CZCIONKA MONOSPACE ] Pierwsza 3/6 po 59 [s]: ![]() |
| | Dodaj wpis w tym temacie | Spis tematów | Wyniki lotto | Strona: 1 Wyślij wiadomość do admina |