[0,0,0,0,0,0,0,1234,0,0,0].reduce(function(a, b) { return a + b; }); // 1234 if(NaN === 0){ return( Math.Random() ) }