Evolution by random mutations

I can't wrap my head at all around the concept that random mutations result in beneficial traits often enough to drive evolution. To me, it's like saying thay by randomly missing with a novel you can produce a better novel. What am I getting wrong?