def __init__(self, affected_atoms, max_amplitude, hinge_atoms):
if len(hinge_atoms) != self.num_hinge_atoms:<EOL><INDENT>raise ValueError("<STR_LIT>" % (<EOL>self.num_hinge_atoms,<EOL>len(hinge_atoms)<EOL>))<EOL><DEDENT>self.affected_atoms = affected_atoms<EOL>self.max_amplitude = max_amplitude<EOL>self.hinge_atoms = hinge_atoms<EOL>
Initialize a RandomManipulation object

           Arguments:
             affected_atoms  --  a list of atoms that undergo the transformation
             max_amplitude  --  the maximum displacement (unit depends on
                                actual implementation)
             hinge_atoms  --  atoms that are invariant under the transformation