日常の進捗

主に自分のための,行為とその習慣化の記録

乱数のコク

コード

fullScreen();
background(255,255,255);
for (int i = 0; i < 100000; i++) {
  float x = random(width/2);
  float y = random(height);
  point(x, y);
}
translate(width/2, 0);
for (int i = 0; i < 100000; i++) {
  float x = (random(width/2)+random(width/2)+
  random(width/2)+random(width/2)+random(width/2))/5;
  float y = (random(height)+random(height)+
  random(height)+random(height)+random(height))/5;
  point(x, y);
}

リファレンス

乱数チューニングによる動きのコク

togetter.com