diff --git a/README.md b/README.md index 59832d8..8a29bce 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# go-lottery-generator +# lottery-generator A lottery number generator written in Go that generates random sequences and tracks when any sequence appears multiple times. @@ -29,6 +29,11 @@ This is a statistical curiosity inspired by [Vietlott](https://vietlott.vn/) Pow By the birthday paradox, with C(45,6) = 8,145,060 possible combinations, you'd expect a repeat after roughly √(2 × 8,145,060 × ln 2) ≈ **3,360 draws** on average. This program runs the simulation and stops as soon as one sequence has been generated exactly 6 times — letting you observe the actual count empirically. -## Original Python Version +## Earlier versions -*In 2025, I rewrote this project using Go. The original Python version of this project can be found at [feature/python](https://github.com/tiennm99/lottery-generator/tree/feature/python) branch.* +This repository keeps the full history of the earlier implementations. The first +version was written in Java (2023), then rewritten in Python, and in 2025 in Go. +Browse them at the last commit of each: + +- [Java version](https://github.com/tiennm99/lottery-generator/tree/98c8ad5a6b49bda9ec342a95408fb10676640d22) +- [Python version](https://github.com/tiennm99/lottery-generator/tree/f7432edaf382954e1dacfc4833b3120a64546163) diff --git a/go.mod b/go.mod index 9a69dd0..b0c5036 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/tiennm99/go-lottery-generator +module github.com/tiennm99/lottery-generator go 1.21