Menghasilkan nomor acak menggunakan kelas Java Random.
Random rand = new Random ();
rand.nextInt (Math.abs ((firstChoice - secondChoice)) + 1) + Math.min (firstChoice, SecondChoice);
Kode di GitHub: https://github.com/amandafarrell/RandomNumberGenerator