We randomly allocated infants to nasogastric hydration or intravenous hydration by use of a computer-generated sequence and opaque sealed envelopes , with three randomly assigned block sizes and stratified by hospital site and age group ( 2 - < 6 months vs 6-12 months ) .