W3cubDocs

/Nushell

random integer for random

Generate a random integer [min..max].

Signature

> random integer {flags} (range)

Parameters

  • range: Range of values

Input/output types:

input output
nothing int

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 integer100000..

Generate a random integer between 1 and 10

>random integer1..10

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/random_integer.html