How to create randomly packed bed?
What sort of difficulty have you met? To do this kind of thing:


Create your cylinder, in the Physics panel press Rigid Body, choose Type > Passive and Shape > Mesh.
Create your falling object, in the Physics panel press Rigid Body, choose Type > Active.
Duplicate your object with altD (linked duplication).
Play the animation.