Java ThreadLocalRandom current() methodThe current() method of Java ThreadLocalRandom class returns the current thread's ThreadLocalRandom. It takes no parameter. Syntax:Parameter:NA Returns:This method returns the current thread's ThreadLocalRandom. ExampleTest it NowOutput: Current thread's LocalThreadRandom name is: [email protected]
Next TopicJava ThreadLocalRandom
|