title: Loading a random texture in three.js
body: <p>Suppose I have 10 objects and I want for each object to be given a texture picked for me randomly out of a pool of 10 textures. How do I go about that for this mesh object? </p>
  
  <pre><code>for(var int = 0; int &lt;= 10 ; int++)
    { var loader = new THREE.TextureLoader();
      var testMat = new THREE.MeshPhongMaterial({ map: loader.load('images/image1') });
      var testGeo = new THREE.SphereGeometry(50, 50, 50);
  
      testSphere = new THREE.Mesh(testGeo, testMat);
      testSphere.position.set(distance, 100, 100);
      scene.add(testSphere); }
  </code></pre>