Computer Science, asked by JUGO9846, 10 months ago

A STUDENT INCORRECTLY ATTEMPTED TO PRODUCE A RANDOM VALUE IN THE RANGE 1.6 USING THE EXPRESSION : 6*(int)Math.random( ) +1. correct the error in the expression to get the desired result​

Answers

Answered by playcard2005
28

Answer:

(int) Math.random( ) * range + 1

Similar questions