Interface Randomable
- All Known Subinterfaces:
BrushSettings
,SchematicSelection
,SchematicSet
public interface Randomable
Provides a standard random instance.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Random
random()
Get the random instance of the calling threaddefault int
randomInt
(int bound) Get a random integer based onThreadLocalRandom
-
Method Details
-
randomInt
default int randomInt(int bound) Get a random integer based onThreadLocalRandom
- Parameters:
bound
- upper exclusive bound- Returns:
- number in bounds
-
random
Get the random instance of the calling thread- Returns:
- random instance of the calling thread
-