If you have same ability scores on both classes, what matters are your feats (if you select a warrior based class).
Selecting a caster is not logical since increasing levels will cause you a lower attack bonus, and your lower skills on Str will not offer you enough damage bonus. All this will end up with more casting and very low usage of ranged attacks.
There is enough explanation for avoiding range-based Rogues in the comments on OrionDarkwood's answer.
For choosing between Fighter and Ranger, Rangers have some Rogue skills and some spellcasting ability, but that will not help you much in combat. With the bonus feats of a fighter, you can take all the bonus feats of the Ranger, and get more with your remaining feats. Since Fighters do not have a high Wis requirement like Rangers, you can get a higher Str or Dex score.