Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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