topical media & game development

talk show tell print

graphic-processing-learning-09-example-9-4-example-9-4.pde / pde



  // Learning Processing
  // Daniel Shiffman
  // http://www.learningprocessing.com
  
  // Example 9-4: Using a while loop to initialize all elements of an array
  
  float[] values = new float[1000];
  
  int n = 0;
  while (n < 1000) {
    values[n] = random(0,10);
    n = n + 1;
  }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.