PRACTICE slow, then play it faster and faster until you get it...
I do not recommend to my students to play solos note for note, unless you are paid to do an impression of the guitarist. Try to get the vibe, maybe the structure of the solo, then play it your way, you'll never play like Randy, even if you have twice more chops than him, and the same rig that he had. You'll just sound like yourself playing Randy's solo.