title: Android Passing Variable doesn't seem to click
body: <p>I have created a random number and would like to pass it along to use in the same file just different class. Please help:</p>
  
  <pre><code>public void Start() {
  int number = random.nextInt(3); // Gives a number such that 0 &lt;= number &lt; 2
  </code></pre>
  
  <p>then a few lines down I try to use <code>number</code> but it's telling me it's not a variable to use:</p>
  
  <pre><code>    public void renderBackground(Canvas canvas) {
  
      //TODO: you may wish to change background colors from here
      if(number=="0") {
  </code></pre>
  
  <p>any kind of help is great appreciated!</p>