v1
8/13/2019 by Igor 8/14/201900
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
var a = [];
for (var i=0;i<100000;++i) {
    a[i]=i;
}
function shuffle(a) {
    var j, x, i;
    for (i = a.length - 1; i > 0; i--) {
        j = Math.floor(Math.random() * (i + 1));
        x = a[i];
        a[i] = a[j];
        a[j] = x;
    }
    return a;
}
delete caserun single casemove downdrag and drop case


ready



a = a.map(function(elem,index) { return [elem, Math.random()]})
.sort(function(a,b){ return a[1] - b[1]})
.map(function(elem){return elem[0]});
console.log(a[0]);
delete caserun single casemove updrag and drop case


ready



shuffle(a);
console.log(a[0]);
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN