Files
lottery-generator-java/README.md
T
2025-11-28 21:57:17 +07:00

676 B

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.