generate page-number-sequence based on three required- and one optional -parameter(s). the function is able to handle all edge-cases - meaning it will generate a sensible sequence even if unorthodox parameters are passed.
though some range- and type -checking is built in, like passing in NaN or Infinity, which will result in meaningful console messages at run-time or the values defaulting to minimum values where logical.