Package org.aincraft.math
Interface RandomSelector<T>
- All Known Subinterfaces:
RandomSelector.UniformRandomSelector<T>,RandomSelector.WeightedRandomSelector<T>
public interface RandomSelector<T>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptiongetObject(RandomGenerator randomGenerator) static <T> RandomSelector.UniformRandomSelector<T> uniform()static <T> RandomSelector.WeightedRandomSelector<T> weighted()
-
Method Details
-
getObject
- Throws:
IllegalStateException
-
uniform
-
weighted
-