java.util.concurrent.ThreadLocalRandom Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt Show documentation
Show all versions of jtransc-rt Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package java.util.concurrent;
import java.util.Random;
public class ThreadLocalRandom extends Random {
static private ThreadLocalRandom _current = null;
public static ThreadLocalRandom current() {
if (_current == null) _current = new ThreadLocalRandom();
return _current;
}
}