@kszongic/randfloat-cli
v1.0.0
Published
Generate random floating-point numbers from the command line
Downloads
45
Maintainers
Readme
@kszongic/randfloat-cli
Generate random floating-point numbers from the command line.
Install
npm install -g @kszongic/randfloat-cliUsage
# One random float between 0 and 1
randfloat
# Five random floats
randfloat -n 5
# Float between 10 and 20
randfloat --min 10 --max 20
# Three floats with 2 decimal places
randfloat -n 3 -p 2
# Comma-separated output
randfloat -n 4 -s ,Options
| Option | Description | Default |
|---|---|---|
| -n, --count <N> | Number of values | 1 |
| --min <N> | Minimum value | 0 |
| --max <N> | Maximum value | 1 |
| -p, --precision <N> | Decimal places | 6 |
| -s, --separator <S> | Output separator | newline |
| -h, --help | Show help | |
| -v, --version | Show version | |
License
MIT © 2026 kszongic
