title: how to select a random color from a method with label and color objects?
body: <p>Trying to run random colors from the three defines color properties,   </p>
  
  <pre><code>int num1 = rand() %3;
  color1= [UIColor colorWithRed:0.5/num1 green:0.7/num1 blue:0.5/num1 alpha:1.0];
  [self setColor:color1 setLabel:label1];
  
  int num2 = rand() %3;
  color2 = [UIColor colorWithRed:0.5/num2 green:0.7/num2 blue:0.5/num2 alpha:1.0];
  [self setColor:color2 setLabel:label2];
  
  int num3 = rand() %3;
  color3= [UIColor colorWithRed:0.5/num3 green:0.7/num3 blue:0.5/num3 alpha:1.0];
  [self setColor:color3 setLabel:label3];
  </code></pre>
  
  <p>trying to generate random colors from the color object, label object.</p>
  
  <p>Want to put random() for the entire color variable not just for the properties. How can i do that. Thanks in advance</p>