add option -r which randomly assigns other flags