question about random()
              in 
             Programming Questions 
              •  
              3 years ago    
            
 
           
             I found this notation in someone's code and I don't understand it:
            
ref[i]=(random(2)<1);
I understand that random(2) returns a value between 0 and 2, but what is the "<1" for?
 
           
 
            
           ref[i]=(random(2)<1);
I understand that random(2) returns a value between 0 and 2, but what is the "<1" for?
 
              
              1  
            
 
            
 
 
          