Check out example codes for "generate random dark colors programatically in android". It will help you in understanding the concepts better.

Code Example 1

Random rnd = new Random();
paint.setARGB(255, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256));

Learn ReactJs, React Native from akashmittal.com