Android Build a Simple Android App with Java Basic Android Programming Using the Random Class

choosing random fact

Now limit the range of the randomNumber variable from 0 to 9. Use the version of nextInt() that takes a parameter specifying how many numbers to choose from.

RandomTest.java
Random randomGenerator = new Random();
int randomNumber = randomGenerator.nextInt( n: 9);