2025-11-28 22:21:17 +07:00
2025-11-28 21:57:17 +07:00
2023-08-01 13:11:43 +07:00
2025-11-28 21:57:17 +07:00

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.

S
Description
[Archived — see lottery-generator] Original Java lottery number generator. Replaced by lottery-generator (Go).
Readme Apache-2.0
169 KiB
Languages
Go 100%