How do you get your penis hard?

There are many ways, including rubbing it, getting sexually excited, and having sex.