Add random class.