1
Fork 0
mirror of https://github.com/RGBCube/random-scripts synced 2025-05-14 02:54:58 +00:00
random-scripts/main.nu
2023-12-06 15:58:55 +03:00

18 lines
239 B
Text
Executable file

#!/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 "