Here you can find the source of getThreadLocalRandom()
public static ThreadLocalRandom getThreadLocalRandom()
//package com.java2s; //License from project: Apache License import java.util.concurrent.ThreadLocalRandom; public class Main { public static ThreadLocalRandom getThreadLocalRandom() { return ThreadLocalRandom.current(); }//from ww w .ja v a 2s.com }