Thrown weapons can be used to make ranged attacks. If the weapon is also a melee weapon, use the same ability modifier for the ranged attack that you would use for a melee attack with the weapon. For instance, use your Strength modifier when throwing a handaxe, but you can use either Strength or Dexterity when throwing a dagger since it has the Finesse property.