diff --git a/lottery.nu b/lottery.nu index dfd14b5..f030441 100755 --- a/lottery.nu +++ b/lottery.nu @@ -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 "