// function weights yellow with p_y% for the yellow box function yellowrandomCase(p_y,N){ let random_seq = '' for (let i = 0; i < N; i++) { var n = Math.floor(Math.random()*100); if (n