Javatpoint Logo
Javatpoint Logo

Java ThreadLocalRandom current() method

The 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.

Example

Test it Now

Output:

Current thread's LocalThreadRandom name is: java.util.concurrent.ThreadLocalRandom@11028347






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA