Store the maximum values of x over a simulation in the output range.
Calculate the running maximum over the course of the simulation. The output can be a range that will store the the running largest values that have been generated.
x is the number whos maximum is to be computed.
reset? is an optional boolean to reset the calculation.