1
Fork 0
mirror of https://github.com/RGBCube/random-scripts synced 2025-05-14 02:54:58 +00:00
random-scripts/lottery.nu

18 lines
246 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 --no-newline $"\b($i)"
sleep 300ms
}
print --no-newline $n
}
print "\b "