Rats and mice can make great pets especially for children. Their average life is only 2 years so they are not as a long term commitment as a dog or cat. Daily handling from a young age will make them a better pet.
They need an enclosure which allows them room to exercise with adequate ventilation, plenty of hiding and play areas, protection from predators and protection from weather extremities. Bedding should be provided in the form of shredded newspaper, recycled paper pellets, hay or straw.
Rats and mice are omnivorous. Their diet should consist of good quality pelleted food, fresh vegetables including broccoli, Chinese vegetables, carrots and beans plus small quantities of fruit including apples, pears and bananas. Always provide plenty of water using a water bottle and check daily.