nushell/docs/commands/random-integer.md
JT bff81f24aa
Autogenerate missing docs (#3514)
* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
2021-05-30 12:57:04 +12:00

569 B

random integer

Generate a random integer [min..max]

Usage

> random integer (range) {flags} 

Parameters

  • (range) Range of values

Flags

  • -h, --help: Display this help message

Examples

Generate an unconstrained random integer

> random integer

Generate a random integer less than or equal to 500

> random integer ..500

Generate a random integer greater than or equal to 100000

> random integer 100000..

Generate a random integer between 1 and 10

> random integer 1..10