Package com.dynatrace.openkit.providers
Class DefaultRandomNumberGenerator
- java.lang.Object
-
- com.dynatrace.openkit.providers.DefaultRandomNumberGenerator
-
- All Implemented Interfaces:
RandomNumberGenerator
public class DefaultRandomNumberGenerator extends java.lang.Object implements RandomNumberGenerator
Default implementation for providing a random number.
-
-
Constructor Summary
Constructors Constructor Description DefaultRandomNumberGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnextPercentageValue()Returns a positive random integer number in range [0,100).longnextPositiveLong()Returns a positive random long number (including0).
-
-
-
Method Detail
-
nextPositiveLong
public long nextPositiveLong()
Description copied from interface:RandomNumberGeneratorReturns a positive random long number (including0).- Specified by:
nextPositiveLongin interfaceRandomNumberGenerator
-
nextPercentageValue
public int nextPercentageValue()
Description copied from interface:RandomNumberGeneratorReturns a positive random integer number in range [0,100).- Specified by:
nextPercentageValuein interfaceRandomNumberGenerator
-
-