How can I write a script that makes a jQuery UI slider automatically slide?
<p>So I have some <a href="https://jqueryui.com/slider/" rel="nofollow">jQuery UI sliders</a> on my webpage with the code</p>

<pre><code>var sliders = $("#sliders .slider");
var availableTotal = 100;


sliders.each(function () {
    var init_value = parseInt($(this).text());
    $(this).siblings('.value').text(init_value);
    $(this).empty().slider({      
        value: init_value,
        min: 0,
        max: availableTotal,
        range: "max",
        step: 5,
        animate: 0,
        slide: function (event, ui) {
             // ... 
        } 

    });
});
</code></pre>

<p>hooked up to them. I'm trying to write a testing script that makes them automatically slide right or left, like</p>

<pre><code>for ( var k = 0; ; ++k )
{
    setTimeout(50,function(){ 
        $(sliders[k % sliders.length]).slide(...); 
    });
}
</code></pre>

<p>but I'm not sure what goes in the <code>(...)</code>. What exactly is <code>event</code> and <code>ui</code> and how can I pass in randomly generated valid values for my automated test?</p>