How to make a random distribution of two types of atoms on a fcc lattice

Dear LAMMPS users

I want to produce an alloy system in which the mixture of atoms are distributed randomly on a fcc lattice.
I will appreciate if anyone knows how to make it,
Hasan

Dear LAMMPS users
I want to produce an alloy system in which the mixture of atoms are
distributed randomly on a fcc lattice.

how about creating a lattice of one type atoms
and then change the type for a fraction (randomly
chosen) to the second type?

axel.

Thanks Axel. Is it doable via lammps or I need to write a code to change the type for a fraction of them?

Hasan

Thanks Axel. Is it doable via lammps or I need to write a code to
change the type for a fraction of them?

it is doable with lammps. help yourself to the
reading the documentation of the set command.

axel.