1
Fork 0
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:
RGBCube 2023-12-06 15:55:41 +03:00
parent 5910165537
commit 8a73e9c800
No known key found for this signature in database

18
lottery.nu Executable file
View 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 "