我想要指定范围内的四个不同数字,但我得到了一些数字和一些日期。
此应用程序是这些选择的测试应用程序
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);