Skip to content

alshiryaev/goltr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Goltr

A simple Go package for generating unique random numbers, similar to a lottery draw.

Structure

Usage

Import the package and use the Generate function to get n unique random numbers between 1 and max (inclusive):

import "github.com/alshiryaev/goltr/lotery"

numbers := lotery.Generate(6, 24) // Generates 6 unique numbers between 1 and 24

Development

  • Go version: 1.24.4
  • To run or test, use standard Go commands:
go run ./lotery
go test

About

lotery emulator

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages