Add random option to the class command.