Rimfire ammo is a crap shoot, but one where you can alter the odds.
I usually get more second-third strike duds from budget ammo. Bulk packed ammo from any maker, Aguila to Winchester, it all has this tendency in my guns.
Better ammo? Fewer duds.
Premium match ammo? One in a second blue moon. (I can never say never!)
I store my ammo the same way, usually in their containers, some is in ammo cans (still in their boxes). The more extreme the storage conditions, it stands to reckon the less reliable the ammo.
I don’t drive around with ammo in the vehicles as a matter of course anymore, but for three decades I had a rifle, shotgun or both riding in my patrol unit or take home vehicle 24/7/365. That center fire ammo got shot at least annually and replaced with fresh stuff. Heat, cold, rain/snow//humidity, shock and vibrations are all not good for ammo and are detrimental to it over time.
When the Dorner shootout happened years back, several patrol rifles used by deputies had ammo in the mags with the bullets shook loose and powder spilled in the magazine body. Not many, but enough to get the SO to inspect hundreds of mags around the county. A few more in other cars were found. There was no rotation schedule or policy in place, so some of this ammo probably rode in patrol cars for years.
They now rotate ammo and replace it to alleviate this issue (and catch poorly manufactured ammo early, before a rifle with a bad round is needed in an incident.) This is an extreme, but I took it as a real world example where indifference, unintentional oversight or neglect can cost you.
Stay safe.