W3cubDocs

/Nushell

random decimal for random

deprecated: Generate a random float within a range [min..max].

Signature

> random decimal {flags} (range)

Parameters

  • range: Range of values

Input/output types:

input output
nothing number

Examples

Generate a default float value between 0 and 1

>random decimal

Generate a random float less than or equal to 500

>random decimal..500

Generate a random float greater than or equal to 100000

>random decimal100000..

Generate a random float between 1.0 and 1.1

>random decimal1.0..1.1

Notes

Use random float instead

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