Interface LocalRandom
-
public interface LocalRandom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegergetNextRandom()IntegergetNextRandomExcluding(int exclusion)Also according to benchmark requirements, except that in this special case of the update test we need to ensure we'll actually generate an update operation: for this we need to generate a random number between 1 to 10000, but different from the current field value.
-
-
-
Method Detail
-
getNextRandom
Integer getNextRandom()
- Returns:
- an Integer representing a random number in the space expected by the benchmark: [1-10000].
-
getNextRandomExcluding
Integer getNextRandomExcluding(int exclusion)
Also according to benchmark requirements, except that in this special case of the update test we need to ensure we'll actually generate an update operation: for this we need to generate a random number between 1 to 10000, but different from the current field value.- Parameters:
exclusion-- Returns:
- an Integer representing a random number in the space expected by the benchmark: [1-10000], but always excluding the one matching exclusion.
-
-