Random atom creation?

Hi, which is the script function to create things at random?

For example, I have four different atoms and I want choose them randomly and doc into a position.

How can I do it?

Thank you very much