How are visas designated for persons from countries underrepresented in recent immigration to the United States assigned?

1. by congressional petition
2. on a first-come, first-served basis
3. by lottery
4. by presidential order