For each field in the file "filename", randomly convert the characters to either lowercase or uppercase.
awk -v FS='' -v OFS='' '{for(i=1;i<=NF;i++) {if(rand()<.5)$i=tolower($i); else $i=toupper($i)};print}' filename