title: how to log an integer value with log.d?
body: <p>I am very new to Android and am trying some simple log to get a random background color. I have the code and it returns an integer between 1-256, or so I think. I need to log the value to check if it's OK, but I'm not sure how to log it with Android.. I've been using <code>System.out.println("stuff")</code> to log stuff in the past but I believe that's not how you're supposed to do it in Android.</p>
  
  <p>I have my class:</p>
  
  <pre><code>public static int backgroundColorRandomize()
  </code></pre>
  
  <p>that returns</p>
  
  <pre><code>return randomRGB;
  </code></pre>
  
  <p>and I try to log it like this</p>
  
  <pre><code>Log.d(backgroundColorRandomize(), "value = " + randomRGB);
  </code></pre>
  
  <p>but I need to convert the returned value from <code>backgroundColorRandomize</code> to a String in order for it to log.</p>
  
  <p>I tried java's <code>.toString</code> but I'm not sure I'm using it right.. Any help would be appreciated! Thanks!</p>