A simple Go CLI tool to generate a random integer within a specified range.
- Specify an upper and lower bound
- Support for shorthand flags
- Error handling for invalid ranges
go run main.go --lower 10 --upper 100Or using shorthand:
go run main.go -l 10 -u 100Prints a random number between the given lower (inclusive) and upper (exclusive) bounds.
This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.
To install the tool, run the following command:
go install github.com/TWolfis/random@latest