shuf -i 0-100 | xargs -I {} echo $(echo {} | sed 's/[12]/*/g')

Replace all 1s and 2s with asterisks and echo the result for each number between 0 and 100, randomly.
shuf -i 0-100 | xargs -I {} echo $(echo {} | sed 's/[12]/*/g')