Rangers are based off dexterity; the higher your dexterity, the harder you can hit enemies.
Dexterity improves ranged attack rolls, including those for attacks made with bows, crossbows, throwing axes, and other ranged weapons. Melee attack tolls with the Weapon Finesse perk. Dexterity also improves dodge Armor Class (AC), provided that the character can react to the attack. As well as reflex saving throws for avoiding fireballs and other attacks that you can escape by moving quickly.
Rangers can use weapons such as longbows, short-bows, and crossbows. Bows can be crafted from wood with a knife. Crossbow limbs can also be created this way.