mode

Parameters

mode

the mode, must be less than or equal to max