In my bedroom along the floorboard, underneath a window, about 20 of these, ranging in color from light white/yellow to dark brown red. At first I thought it was rice, till i picked one up with tweezers and squeezed it. Big mistake. I live in an apartment that recently had big time exterminators out for Carpenter ants. Since then, no ants, but now this? and in my bedroom? what can I expect? The house is very old, split into apartments so I am use to bugs of all sorts, but these, I don’t know, the fact that I found them in my bedroom, I am a little freaked out. Thanks in advance.
The good news is you do not have Pantry Beetles. The bad news is you will soon have a Fly invasion. It looks like Flies got into rotting organic matter somewhere (Forgot to take out the garbage? Dead mouse in the walls?) and laid eggs. The maggots developed unnoticed and some wandered to a dry place to pupate. You have Fly Pupae, or more correctly, Fly Puparia.