How to use an array to print out 5 random numbers between 1-10 onto the screen?
              in 
             Programming Questions 
              •  
              5 months ago    
            
 
           
              I have an exam tomorrow and im clueless. I cant even get print out 5 random numbers between 1-10 onto the screen. Please help. This is what I have so far.
            
            
             float[] x= new float[5];
            
            
             void setup()
             
{
size(200, 200);
smooth();
for (int i=0; i<x.length;i++)
{
// x[5]= random(256);
text(x[i], 20, 10+i*20);
}
            {
size(200, 200);
smooth();
for (int i=0; i<x.length;i++)
{
// x[5]= random(256);
text(x[i], 20, 10+i*20);
}
// x[i]= random(200);
}
//void draw()
 
              
              1  
            
 
            