Make sure to also have a reliable source of water and heat to prepare the rice with.
I’ve purchased rice, and beans. But also *cans* of beans, which are already ready to eat, and include liquid. Make sure to have spices as well — rice can get boring after a couple of weeks.
Your preparation is prudent.
I really wish I had a well.