Package es.urjc.etsii.grafo.util.random
Class RandomManager
java.lang.Object
es.urjc.etsii.grafo.util.random.RandomManager
Multi-thread aware random manager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RandomGenerator
Get RandomGenerator for the current thread.
-
Constructor Details
-
RandomManager
public RandomManager()
-
-
Method Details
-
getRandom
Get RandomGenerator for the current thread. The returned RandomGenerator is not guaranteed to be thread safe, and should only be used in the calling thread.- Returns:
- RandomGenerator for the current thread
-