index.html <button id="start" onclick="gacha();">ガチャを引く</button> <div id="img-box"></div> <script> function gacha(){ //配列を使ってランク別に画像を保存 let star3 = ['01.png','02.png']; let star2 = ['03.png','04.png','05.png','06.png']; let star1 = ['07.png','08.png','09.png','10.png','11.png','12.png']; //console.l…