2 # Dumb little AWK program to convert random decimal
3 # values generated by rand.bc into passwords from the
4 # character set defined below as "charset".
7 charset = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
8 for (i = 0; i < length(charset); i++) {
9 set[i] = substr(charset, i, 1)
12 { printf "%s", set[$1 % length(charset)] }