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:
parent
e64355b2ce
commit
36a45f28a3
3 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue