Math.Random class In Java Programming, Math.Randoms class generates random integers, doubles, longs and so on, in various ranges. To generate a series of random numbers as a unit, you need to use a single Random object – do not create a new Random object for each new random number. Following example shows this: import java.util.Random; /** Generate 10 random integers in the range 0..99. */ public class RandomInteger …