Frostbite6038 Frostbite6038
  • 23-12-2022
  • Mathematics
contestada

Which of the following statements assigns a random integer between 1 and 10, inclusive, to rn ?
A int rn = (int) (Math.random()) * 10;
B int rn = (int) (Math.random()) * 10 + 1;
C int rn = (int) (Math.random() * 10);
D int rn = (int) (Math.random() * 10) + 1;
E int rn = (int) (Math.random() + 1) * 10;

Respuesta :

Otras preguntas

What would make oppositely charged objects attract each other more? increasing the positive charge of the positively charged object and increasing the negative
Round 0.3644 to the nearest thousandths place
expand and simplify (3x+4)(2x+3)
Active readers have to _____. multitask while reading highlight, paraphrase, and summarize read only in large groups
If a parent cell has 3 chromosomes before mitosis,how many chromosomes will each daughter cell have after mitosis and cytokinesis? A.1.5 B.3 C.6 D.12
Write a narrative essay about a memorable summer vacation 150 words Please the due is in 6hr
What countries implemented Mary Astell’s ideas? How?
why would your weight be different in space compared to on earth? please use mass and gravity in your explanation
which two of these words can be used to describe summary?
Simplify: 6 x (-5)+(-18)​