How do I get a letter of recommendation from professors I don't know personally?

I am an introvert and I don't talk so much. I get good grades but none of the professors know I exist. How do I ask them for a recommendation letter?

Please tell me if those questions are the same.
no