Nidoran (M) can breed with Ditto, but the resulting offspring will always be male. I think there's a glitch in the earlier games that causes Nidoqueen and Nidorina to be unable to breed, making Nidoran (F) your only option if you want a female offspring.
The chances of getting a female offspring with Nidoran (F) paired with either a Ditto or Nidoran (M) is random.