Interface LocalRandom
public interface LocalRandom
-
Method Summary
Modifier and TypeMethodDescriptiongetNextRandomExcluding(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 Details
-
getNextRandom
Integer getNextRandom()- Returns:
- an Integer representing a random number in the space expected by the benchmark: [1-10000].
-
getNextRandomExcluding
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.
-