Why random() repeats
              in 
             Programming Questions 
              •  
              10 months ago    
            
 
           
             Hello!
            
            
Can anyone tell me why random() here seems to repeat? I would like the ellipse height and width to be between 0-200, it seems to keep making new values leading to odd animation.
            
            
I know this is prob really simple but can't find an answer.
            
Many Thanks!
 
           
 
            
           Can anyone tell me why random() here seems to repeat? I would like the ellipse height and width to be between 0-200, it seems to keep making new values leading to odd animation.
- void setup() {
 size(800, 800);
 ellipseMode(CENTER);
 smooth();
 }
 void draw() {
 background(255);
 ellipse( width/2, height/2, random(200), random(200));
 }
I know this is prob really simple but can't find an answer.
Many Thanks!
 
              
              1  
            
 
            
 
 
           
 
            