mirror of
https://github.com/tiennm99/lottery-generator-java.git
synced 2026-08-30 06:07:46 +00:00
c4af4abfa9f807bfc21a4a91f0f0b15e64d82817
go-lottery-generator
A lottery number generator written in Go that generates random sequences and tracks when any sequence appears multiple times.
Features
- Generates random sequences of 6 numbers from 1-45
- Tracks sequence frequency using a map
- Stops when any sequence appears 6 times
- Prints the generation count and matching sequence
Usage
go run main.go
Example Output
1831593
[37 6 43 5 11 31]
Done
Original Python Version
In 2025, I rewrote this project using Go. The original Python version of this project can be found at feature/python branch.
Languages
Go
100%