How do I write a function for this jquery increment plugin?
<p>I have found a nice jquery increment script. The increment portion can accept a function or just a regular number. I am looking to increase at a random number between 1 and 100. How would I write the function for this?</p>

<pre><code>$( document ).ready( function()
{
  $( '.tick' ).ticker(
  {
    incremental : 1,
    delay       : 1500,
    separators  : true
  });
   $(".comma-change").html(".");  
});

&lt;span class="tick"&gt;2,354,456&lt;/span&gt;
</code></pre>

<p>So rather than increase by 1 in the incremental field, I would like to write a function that updates with a random number. With the help of other posts I can write the function that creates a random number no problem:</p>

<pre><code>function random_generator (min, max) {
    return Math.random() * (max - min) + min;
}
</code></pre>

<p>but I am having trouble working it into this directly.</p>

<p>Here is the increment portion of the plugin:</p>

<pre><code>  Tick = (function() {

    function Tick(element, options) {
      this.element = element;
      if (options == null) options = {};
      this.running = false;
      this.options = {
        delay: options.delay || 1000,
        separators: options.separators != null ? options.separators : false,
        autostart: options.autostart != null ? options.autostart : true
      };
      this.increment = this.build_increment_callback(options.incremental);
      this.value = Number(this.element.html().replace(/[^\d.]/g, ''));
      this.separators = this.element.html().trim().split(/[\d]/i);
      this.element.addClass('tick-active');
      if (this.options.autostart) this.start();
    }

    Tick.prototype.build_increment_callback = function(option) {
      if ((option != null) &amp;&amp; {}.toString.call(option) === '[object Function]') {
        return option;
      } else if (typeof option === 'number') {
        return function(val) {
          return val + option;
        };
      } else {
        return function(val) {
          return val + 1;
        };
      }
    };
</code></pre>

<p>and then this bit:</p>

<pre><code>Tick.prototype.tick = function() {
  this.value = this.increment(this.value);
  this.render();
  return this.set_timer();
};
</code></pre>
