using java genrate any ramdom number
Answers
Answered by
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