Computer Science, asked by rajdeepsurroy950, 5 months ago

int a =(int)Math.random();​

Answers

Answered by Dipika7041
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