指定された範囲内に4つの異なる番号が必要ですが、いくつかの番号といくつかの日付を取得します。
このアプリケーションは、これらの選択肢のテストアプリケーションです。
Random rn = new Random();
int rangetp = maximumb - minimumb + 1;
randomNums = rn.nextInt(rangetp) + minimumb;
Random rn1 = new Random();
int rangetp1 = maximumb - minimumb + 1;
randomNums1 = rn1.nextInt(rangetp1) + minimumb;
Random rn2 = new Random();
int rangetp2 = maximumb - minimumb + 1;
randomNums2= rn2.nextInt(rangetp2) + minimumb;
Random rn3 = new Random();
int rangetp3 = maximumb - minimumb + 1;
randomNums3 = rn3.nextInt(rangetp3) + minimumb;
SQLiteDatabase db = veridepo.getReadableDatabase();
cursor = db.rawQuery(
"SELECT yabanci, turkce, biliyorum
FROM tablomm
WHERE id = " + randomNums + "" + sorsunmu + "", null);
cursor1 = db.rawQuery(
"SELECT yabanci, turkce, biliyorum
FROM tablomm
WHERE id = " + randomNums1 + "" + sorsunmu + "", null);
cursor2 = db.rawQuery(
"SELECT yabanci, turkce, biliyorum
FROM tablomm
WHERE id = " + randomNums2 + "" + sorsunmu + "", null);
cursor3 = db.rawQuery(
"SELECT yabanci, turkce, biliyorum
FROM tablomm
WHERE id = " + randomNums3 + "" + sorsunmu + "", null);