In properly formatted text, you use en dash for ranges.
En dash: 20–40
Hyphen: 20-40
Some (most?) modern text editors will substitute two hyphens with an en dash, so you can easily generate them by typing --
.
(I get your point though! Just wanted to point out that there are much nicer and more appropriate glyphs than the hyphen.)
Morticia and Gomez Addams.
“I can: Accomplish” kind of sums it up though