How to Generate a Packed Bed Column usign MATLAB and Unreal Engine

I want to generate a packed bed column, a cylindrical column filled with beads of various shaped (one at a time but i want to be able to change it like a column filled with spherical beads, column filled with cuboidal beads, column filled with cylindrical beads basically define a shape and get a column filled with bead of that shape) like they would form in a real world. One method of achieving this is simulating beads falling from a height into the column and naturally arranging themselves they settle and we see the position and orientation of each bead. What software can i use to model this problem? I am currently using matlab with unreal engine but im unable to work it, what other means can i use to simulate it or find the packing? I read a few papers suggesting to use python to achieve this but idk how to work that as well. Help a fellow mate.