@abstractmethod<EOL><INDENT>def randomize(self, variant: Variant):<DEDENT>
pass<EOL>
Randomize this instruction

This function randomizes the instance of an instruction according to the given variant.

:param variant: RISC-V ISA variant
:return: nothing