Computer Applications
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 expression above to get the desired result.
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 expression above to get the desired result.