Computer Science, asked by jegathiskumaran10, 29 days ago

Which of the following options is the best for generating random integer?

Answers

Answered by itzPapaKaHelicopter
1

You could use boolean values of 0 or 1 based on value of A better result would be to declare java. util.

 \\  \\  \\ \sf \colorbox{gold} {\red(ANSWER ᵇʸ ⁿᵃʷᵃᵇ⁰⁰⁰⁸}

Answered by itkhmindia
0

Answer:

if 0 or 1?

Ans. (int)(Math.random() + 0.5)

Similar questions