int a =(int)Math.random();
Answers
Answered by
2
Answer:
The signature of Math. random() is public static double random() meaning it returns a double value. If for some reason you want an integer then you should cast this value to an int .
Similar questions