Please see the following topic:
Nanoparticle distribution
It contains an example of how to generate a set of small spheres randomly distributed inside a cylinder.
Please see the following topic:
It contains an example of how to generate a set of small spheres randomly distributed inside a cylinder.