Skip to content

Instantly share code, notes, and snippets.

@federico-pepe
Created September 23, 2015 08:00
Show Gist options
  • Select an option

  • Save federico-pepe/06a37ef2f535573b7e20 to your computer and use it in GitHub Desktop.

Select an option

Save federico-pepe/06a37ef2f535573b7e20 to your computer and use it in GitHub Desktop.
Utilizzo della funzione random() - Esempio 1
/*
* Utilizzo della funzione random() - Esempio: 1
* by Federico Pepe
* http://blog.federicopepe.com
*/
void setup() {
size(700, 500);
background(255);
}
void draw() {
ellipse(random(width), random(height), 10, 10 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment