Check out example codes for "java random number between 100 and 999". It will help you in understanding the concepts better.

Code Example 1

int upperBound = 999;
int lowerBound = 100;
int number = lowerBound + (int)(Math.random() * ((upperBound - lowerBound) + 1));

Learn ReactJs, React Native from akashmittal.com