mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-03 07:37:47 +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
|
@ -102,7 +102,7 @@ def random-format-word [] {
|
|||
} else if $rint == 2 {
|
||||
($it | str upcase)
|
||||
} else if $rint == 3 {
|
||||
($it | split chars | each {|c| if (random decimal) < 0.2 { $c | str upcase } else { $c }} | str join "")
|
||||
($it | split chars | each {|c| if (random float) < 0.2 { $c | str upcase } else { $c }} | str join "")
|
||||
} else {
|
||||
($it | str downcase)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue