mirror of
https://github.com/tiennm99/lottery-generator-java.git
synced 2026-08-31 14:47:45 +00:00
29 lines
672 B
Markdown
29 lines
672 B
Markdown
# 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
|
|
|
|
```bash
|
|
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](https://github.com/tiennm99/lottery-generator/tree/feature/python) branch.* |