Used ThreadLocalRandom to replace java.util.Random.