probabilistic Cellular Automata model

I’m working with LBM to simulate flow in channel and around obstacle; now, i wana to investigate the motion of solid particles (aerosol) in this flow with probabilistic CA model. Could anyone give me a simple Code about this model?

thank you so much for your attention.
Best regards…