title: CursorIndexOutOfBoundsException with cursor.getInt()
body: <p>this is my code:</p>
  
  <pre><code> Log.d("MYTAG", "random number --&gt;" + randomNumber);
   idRandomCards[i] = cursorTypeZero.getInt(randomNumber);
  </code></pre>
  
  <p>this is the error Log:</p>
  
  <pre><code>7620-7620/package D/MYTAG﹕ random number --&gt;94
  04-02 16:06:51.804    7620-7620/package D/AndroidRuntime﹕ Shutting down VM
  04-02 16:06:51.804    7620-7620/package W/dalvikvm﹕ threadid=1: thread exiting    with uncaught exception (group=0x41bafda0)
  04-02 16:06:51.854    7620-7620/package D/dalvikvm﹕ GC_FOR_ALLOC freed 1283K,     45% free 9237K/16608K, paused 42ms, total 46ms
  04-02 16:06:51.864    7620-7620/package E/AndroidRuntime﹕ FATAL EXCEPTION: main
  Process: package, PID: 7620
  android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 206
          at ecc
  </code></pre>
  
  <p>as you will see, the  random number in this case has the value of 94. the cursor.getCount() = 206.</p>
  
  <p>why i have this exception?</p>
  
  <p>i dont' wanna use the cursor.getColumnIndexOrThrow() method, because i need a random row.</p>
  
  <p>someone can help me?</p>