document.writeln(''); document.writeln('
'); function RandomNumber(d) { return Math.floor((d+1)*Math.random()); }; var i=0; var output = new Array(0,0,0); document.writeln(''); while (i<2) { output[i] = RandomNumber(data.length-1); if (output[i]==output[i-1]){ } else { document.writeln(''); document.writeln(''); i=i+1; } }; document.writeln(''); document.writeln('');