Did it rain in the time of the dinosaurs?

Yes. Life on land cannot exist without rain.