mirror of
https://github.com/RGBCube/random-scripts
synced 2025-07-27 20:47:45 +00:00
Rename main.nu to lottery.nu
This commit is contained in:
parent
5910165537
commit
8a73e9c800
1 changed files with 0 additions and 0 deletions
18
lottery.nu
Executable file
18
lottery.nu
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env nu
|
||||
|
||||
print -n $"Lottery number: (ansi red) "
|
||||
|
||||
(random int 0..1500 | into string)
|
||||
| split chars
|
||||
| each {|n|
|
||||
for $i in 0..($n | into int) {
|
||||
print -n "\b"
|
||||
print -n $i
|
||||
|
||||
sleep 300ms
|
||||
}
|
||||
|
||||
print -n $n
|
||||
}
|
||||
|
||||
print "\b "
|
Loading…
Add table
Add a link
Reference in a new issue