random grid succession with for structure?
              in 
             Programming Questions 
              •  
              3 years ago    
            
 
           
             hi,
            
i'm using a x/y for structure to position objects in a grid.
like this:
 
            
now i want to have the succession not linear ( from left to right/top to bottom) but random, is there any way to do that easily?
thank you!
 
           
 
            
           i'm using a x/y for structure to position objects in a grid.
like this:
- for (int y=300; y<=1200; y +=300){
 - for (int x=300; x<=1200; x +=300){
 - ...my object here
 - }
 - }
 
now i want to have the succession not linear ( from left to right/top to bottom) but random, is there any way to do that easily?
thank you!
 
              
              1  
            
 
            