Skip to content

Commit

Permalink
💠 don't see every chars appear on the lines one by one
Browse files Browse the repository at this point in the history
  • Loading branch information
SkwalExe committed Mar 23, 2022
1 parent 464fddb commit 6b81076
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mini-matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,15 @@ done

function matrix() {

line=""

for ((i=0; i<=n_chars; i++)); do
# get random char out of custom chars
char=$(echo "$custom_chars" | fold -w1 | shuf | head -n1)
echo -n $char
line="$line$char"
done

printf "%s" "$line"

}

Expand Down Expand Up @@ -146,7 +148,7 @@ case $command in
;;

version)
echo "mini-matrix 1.0"
echo "mini-matrix 0.2.0"
;;

esac
Expand Down

0 comments on commit 6b81076

Please sign in to comment.