Ranged weapons do not have a minimum range, but you have disadvantage on ranged attack rolls when you have the threatened condition, which is caused by a hostile creature being within 5 feet of you.