Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getrandchar() #$1 - pattern_string
- {
- STRLEN=`expr length "$1"`
- RNUM=`shuf -i 1-$STRLEN -n1`
- RCHAR=`echo -e -n "$1"|cut -c$RNUM-$RNUM`
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement