Computer Science, asked by subhendra75, 9 months ago

using java genrate any ramdom number ​

Answers

Answered by jackygirl1324
0

Answer:

first step:Import the class java.util.concurrent.ThreadLocalRandom.

2nd step:Call the method. To generate random numberof type int ThreadLocalRandom.current().nextInt() To generate random number of type double ThreadLocalRandom.current().nextDouble()

Similar questions