Lammps moding

Dear lammps users.
I would like to know how to randomly replace two different particles in the same position in the lammps modeling command?
For example, if I use lammps modeling command to build Ba0.67Sr0.33TiO3 element, in ATiO3 type crystal structure, how can Ba and Sr randomly replace position A?

Two comments to this:

  1. Please post your question to the proper category, i.e. a LAMMPS sub-category. That will increase your chances to receive a response. I saw your post by chance and thus re-categorized it for you this time. That won’t happen in the future.

  2. You can randomly replace atom types with the type/fraction or type/ratio options of the set command — LAMMPS documentation

Okay, thank you for your help, I will pay attention to it next time.