A simple CLI script for generating a random number between a given range.
-
Install Go
-
Install the package:
go install github.com/demeralde/rand@latest
- Run the script with a
min
andmax
number:
rand 1 3
It will print a random number between this range (e.g in this example, 1
, 2
, and 3
are the possible values).