I’m fairly new to Android developing, and I’ve been assigned to make an app that displays random numbers. Now, this is a topic which is fairly popular on the internet, but none of the results I find features a specific amount of random numbers, from a specific range of numbers.
I’m using these objects
Button mBtnCalculate; //calculates on click
EditText mEtxtFirst; //first number of range
EditText mEtxtLast; //last number of range
EditText mEtxtAmount; //# of numbers to output
TextView mTxtvResult; //where it should output to
All EditTexts are converted to integer values on click.
You can try using
Random.nextInt(int):