Generating Random Number in Android
To generate random number in Android, class java.util.Random can be used.This class java.util.Random provides methods that generates pseudo-random numbers of different types, such as int, long, double, and float.
It support two public constructor:
Random() - Construct a random generator with the current time of day in milliseconds as the initial state.
Random(long seed) - Construct a random generator with the given seed as the initial state.
