You can either do it with a flat pick, or with figers 1 2 & 3, classical-style. As far as this latter goes, my classical friends tell me "practice!" Good advice for the former too; wrist action, not elbow action: start off slow and build up speed as you get the hang of it.
Steve