mirror of
https://github.com/RGBCube/random-scripts
synced 2025-05-14 02:54:58 +00:00
Make lottery.nu more readable
This commit is contained in:
parent
08032e38c7
commit
2cb5858816
1 changed files with 4 additions and 4 deletions
|
@ -2,17 +2,17 @@
|
|||
|
||||
print -n $"Lottery number: (ansi red) "
|
||||
|
||||
(random int 0..1500 | into string)
|
||||
random int 0..1500
|
||||
| into string
|
||||
| split chars
|
||||
| each {|n|
|
||||
for $i in 0..($n | into int) {
|
||||
print -n "\b"
|
||||
print -n $i
|
||||
print --no-newline $"\b($i)"
|
||||
|
||||
sleep 300ms
|
||||
}
|
||||
|
||||
print -n $n
|
||||
print --no-newline $n
|
||||
}
|
||||
|
||||
print "\b "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue