random.jsfunction setup(){ $('<h2>').text('ランダムに点を打つ').appendTo($('body')) createCanvas(400,400) fill('yellow') strokeWeight(0) rect(0,0,400,400) } function draw(){ fill('blue') rect(random(400),random(400),5,5) }