Added randomness back into atom sampling: