1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Move random/into decimal to random/into float (#606)

* Move `random-list decimal` to `random-list float`

Updates internally to `random float` published with `0.85`

* Update kubernetes wrapper to `into float`

* Update temp script to `into float`

* Update `nupass` to `random float`
This commit is contained in:
Stefan Holderbach 2023-09-20 19:13:52 +02:00 committed by GitHub
parent e64355b2ce
commit 36a45f28a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -47,8 +47,8 @@ export def "random-list chars" [
}
}
# Generate a random decimal list.
export def "random-list decimal" [
# Generate a random float list.
export def "random-list float" [
list_length: int, # A length of the list
--range (-r): range # A range of the value
] {
@ -57,7 +57,7 @@ export def "random-list decimal" [
}
1..$list_length | each {|it|
random decimal $range
random float $range
}
}