- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
#!/usr/bin/env zsh
A=( q w e r t y u i o p a s d f g h j k l z x c v b n m )
B=( Q W E R T Y U I O P A S D F G H J K L Z X C V B N M )
C=( 0 1 2 3 4 5 6 7 8 9 A B C D E F ) #hex
F=( 1 2 4 )
D=40
E=10
Char::GetRandA(){
echo ${A[$(shuf -n 1 -i 1-${#A[@]})]}
}
Char::GetRandB(){
echo ${B[$(shuf -n 1 -i 1-${#B[@]})]}
}
Char::GetRandC(){
echo ${C[$(shuf -n 1 -i 1-${#C[@]})]}
}
Char::GetRandF(){
echo ${F[$(shuf -n 1 -i 1-${#F[@]})]}
}
Main::Matrix(){
for i in {1..$D}; do
for b in {A,B,C}; do
echo -n '\033[0;3'$(Char::GetRandF)"m$(Char::GetRand$b) "
done
done
}
#Run
for i in {1..$E}; do
Main::Matrix
done