sketch = function(p) {

  var actRandomSeed = 0;

  p.setup = function() {
    p.createCanvas(512,512);
  };

  p.draw = function() {
    p.background(0);

    p.randomSeed(actRandomSeed);

    for (var x = 0; x < p.width; x++) {
      for (var y = 0; y < p.height; y++) {
        p.set(x, y, p.random(255));
      }
    }
    p.updatePixels();
  };

  p.mousePressed = function() {
    actRandomSeed = p.random(100000);
  };

  p.keyReleased = function() {
    if (p.key == 's' || p.key == 'S') p.saveCanvas(gd.timestamp(), 'png');
  };

}
creates a texture based on random values

MOUSE
click               : new noise line

KEYS
s                   : save png