これが私のコードです。Sqlitデータベースでランダムクエリを実行しようとしています。
私はいつも同じ値になってしまいます!!
誰か私に方向を教えてください。
ありがとう!
int i2=gerRank(livello);
Random r = new Random();
int i1 = r.nextInt(i2);
Toast.makeText(this,Integer.toString(i1),Toast.LENGTH_SHORT).show();
Cursor parolaCursor = db.getReadableDatabase().rawQuery(
"SELECT _id, english, korean, difficulty FROM ordinato WHERE difficulty < "
+ Integer.toString(i1)+ " ORDER BY _id", null);
parolaCursor.moveToFirst();