Using new float to write 10 numbers in a row?
              in 
             Programming Questions 
              •  
              8 months ago    
            
 
           
             My assignment is to write 10 numbers in a row in active mode. Is there a way to use new float to get random numbers to show up on the screen? Heres my code.
            
 
            
             //Declaring, assigning, and creating array
             
float[] x= new float[10];
void setup()
{
size(400,400);
             
}
void draw()
{
//Using a for loop to intialize array
for(int i=0; i<10; i++)
{
text(x[i],10,10+i*20);
// x[i]= random(200);
}
 
           float[] x= new float[10];
void setup()
{
size(400,400);
}
void draw()
{
//Using a for loop to intialize array
for(int i=0; i<10; i++)
{
text(x[i],10,10+i*20);
// x[i]= random(200);
}
 
              
              1  
            
 
            