let canvas = document.getElementById("canvas"); let ctx = canvas.getContext("2d"); let random = String(Math.floor(Math.random * 200)); ctx.fillStyle = "rgb(" + random + "," + random + "," + random + ")"; ctx.fillRect(0, 0, 100, 1000);

이대로 하면 검정색만 나와요

canvas에 사각형 색깔이 랜덤으로 나오게하고 싶어요