The ability to roll your tongue is inherited genetically.

The percentage of the human population that has this skill ranges from 65 to 81 percent. A slightly higher percentage of females can do this than males.

The ability to roll one\'s tongue is a genetic trait that historically has been used to demonstrate the concepts of dominant and recessive traits in classrooms. However, the dominant nature of the \"tongue-rolling gene\" has been disproved, and is no longer an acceptable example to teach genetics in the classroom.
(source)