Tagged articles
Lottery
22 articles · Page 1 of 1
This article introduces the open‑source log‑lottery project, a Vue 3 and Three.js‑based 3D lottery tool, explains its configuration options, core features, tech stack, and provides a step‑by‑step guide to clone, install, run, and deploy the application.
DockerIndexedDBLottery
0 likes · 6 min read

This article demonstrates how to fetch historical lottery data for two games, apply a custom matching rule to identify purchase opportunities, analyze consecutive win patterns over 100 days, and export the aggregated results to an Excel file using Python's requests, xlwt, and basic data‑processing techniques.
ExcelLotteryPython
0 likes · 14 min read

This tutorial explains how to create a lottery wheel in HTML5 by designing the turntable layout using CSS transforms, controlling rotation with JavaScript, managing click locks, applying easing for a smooth slowdown, and adjusting prize probabilities through weighted random selection, complete with full source code examples.
CSSHTML5Lottery
0 likes · 11 min read

This article documents the end‑to‑end process of creating a portable offline lottery program for company events by integrating an open‑source web lottery project with Electron, using Vue 3, Vite, and JavaScript, covering requirements, code migration, debugging, and packaging.
Lotterydesktop app
0 likes · 8 min read

This article explains how to implement a random Double Color Ball (Shuangseqiu) lottery number generator using PHP arrays, detailing the definition of red and blue ball arrays, random selection with array_rand(), and outputting the results via foreach loops, along with the complete source code.
BackendLotteryarray
0 likes · 6 min read

This article examines the technical foundations of lottery randomness, explains linear congruential generators and their parameter constraints, discusses implementation pitfalls such as low‑bit bias, and reviews several practical lottery algorithms—including selection, shuffle, reservoir sampling, red‑packet splitting, and probability methods—to achieve fair and scalable interactive draws.
ImplementationJavaLottery
0 likes · 19 min read


JavaEdgeSep 19, 2022 · Backend Development
This article presents a scalable design for selecting N winners from over ten million users during a flash‑sale event, comparing naive SQL approaches with Redis‑based solutions that guarantee uniqueness, atomicity, and sub‑millisecond latency.
LotteryMySQLRedis
0 likes · 5 min read

This article demonstrates how to create a simple lottery application using Spring Boot, MyBatis‑Plus, and Redis, covering project setup, database schema, dependency configuration, Redis integration, event‑driven data initialization, lottery draw logic, stock management, and asynchronous record handling.
JavaLotteryMyBatis Plus
0 likes · 23 min read


Aotu LabMar 10, 2022 · Frontend Development
This guide introduces NutUI‑Bingo, a Vue 3‑based mobile component library for lottery and mini‑game scenarios, covering its background, design, installation, core components, usage examples, and future roadmap with technical details and code snippets.
LotteryMobile UIVue
0 likes · 7 min read

Xianyu standardized its interactive tasks and lottery features by abstracting capabilities into a reusable SDK, providing self‑diagnosis tools, and unifying configuration workflows, which cut front‑end development time by about half, enable operators to troubleshoot without developers, and lower launch and testing costs across large‑scale marketing events.
LotterySDKfrontend
0 likes · 10 min read

This article presents a step‑by‑step guide to building a Spring Boot lottery application that leverages MyBatis‑Plus and Redis for caching activity, prize, and record data, covering project setup, dependencies, configuration, code generation, Redis integration, lottery logic, and stock management.
JavaLotteryMyBatis Plus
0 likes · 32 min read

This report details the development, requirements, core JavaScript implementation, probability testing, and functional verification of the 2022 annual meeting lottery tool, demonstrating that the random selection algorithm yields fair and statistically expected results for all prize tiers.
JavaScriptLotteryReport
0 likes · 11 min read

This article explains how to design and implement a points‑based lottery (luck draw) system in Java with Spring Boot, covering database schema for prizes, probability limits, prize pools, the random draw algorithm, prize restrictions, and asynchronous prize distribution using a factory pattern.
AlgorithmAsyncJava
0 likes · 10 min read

This article explains how to implement a lottery feature in a Java backend, covering database schema design for prizes, probability limits and records, constructing a prize pool, the random selection algorithm, handling prize limits, and using a factory pattern to distribute various prize types.
AlgorithmBackendFactory Pattern
0 likes · 11 min read

This article demonstrates how to use Python to scrape historical lottery data, apply a custom pattern‑matching algorithm to identify winning opportunities, aggregate the results over multiple days, and export the analysis to an Excel file for further review.
LotteryPythondata-analysis
0 likes · 15 min read

This article walks you through creating a simple Python lottery draw program, explains how to prepare the names CSV file, shows the GUI logic, provides key code snippets for random name generation and interface handling, and demonstrates packaging the script into a standalone executable with PyInstaller.
GUILotteryPyInstaller
0 likes · 10 min read

This article presents a Java console program that implements user login, registration, and a lottery feature, detailing the functional requirements, data storage using files, key data structures like ArrayList and HashMap, and provides the complete source code with usage notes.
FileIOJavaLottery
0 likes · 12 min read


HomeTechOct 28, 2020 · Backend Development
This article describes the design, domain‑driven architecture, probability algorithms, extensibility mechanisms, concurrency controls, and management UI of a reusable lottery platform that supports high‑traffic promotional activities while ensuring configurability, anti‑cheat measures, and reliable data consistency.
DDDLottery
0 likes · 12 min read

This tutorial demonstrates how to use Redis SET operations and a Lua script to implement a lottery mechanism, and shows how to integrate the script into a Java Spring application using Spring Data Redis's RedisTemplate for atomic execution.
JavaLotteryLua
0 likes · 8 min read

Learn how to quickly create a questionnaire using SeaTable, automatically collect responses, and run a custom script to randomly select winners, providing a fast, low‑code solution for urgent business needs without a full development cycle.
LotteryScriptSeaTable
0 likes · 7 min read

This article walks through creating an engaging, fair lottery program for an annual event using plain JavaScript, including random shuffling, localStorage persistence, and a horse‑race animation built with HTML and CSS, complete with reusable functions and step‑by‑step code explanations.
Lotteryanimation
0 likes · 14 min read


ITPUBOct 20, 2016 · Databases
A lottery system that relied on MySQL’s SELECT without ORDER BY unintentionally gave a single player multiple top‑prize wins because InnoDB reordered results by primary key, revealing a subtle database engine rule that can corrupt random selection logic.
InnoDBLotteryMySQL
0 likes · 6 min read
