'use strict' function random(x){ return Math.floor((Math.random() * x) + 1); } let tamanio=1000000; let x,y; let c=100; while (c>0){ x=random(tamanio); y=random(tamanio); if (x===y) { postMessage(x); c-=1; } }