正規分布の生成
https://gyazo.com/edbeca3c66ed7606e6fcc27dbf9b5bc8
code:normal.js
function setup(){
createCanvas(200,200)
histogram = []
for(i=0;i<100;i++) histogrami = 0 strokeWeight(0)
}
function draw(){
val = 0
for(i=0;i<10;i++) val += random(1/10)
fill('yellow')
rect(0,0,200,200)
fill('blue')
for(i=0;i<100;i++)
rect(i*2,200-histogrami,2,histogrami) }