Package hlcd.testing.optimizationTester
Class RandomVectorGenerator
java.lang.Object
hlcd.testing.optimizationTester.RandomVectorGenerator
Creates a random
long value based on the specified n and
base values in the constructor.- Since:
- 1.8
- Version:
- 1.0 (February 18th, 2022)
- Author:
- Maysara Al Jumaily
-
Constructor Summary
ConstructorsConstructorDescriptionRandomVectorGenerator(byte n, byte base)Initializes the generator based on the length of the vector and the base specified. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns a random vector based onnandbasevalues specified in the constructor.
-
Constructor Details
-
RandomVectorGenerator
public RandomVectorGenerator(byte n, byte base)Initializes the generator based on the length of the vector and the base specified.- Parameters:
n- the length of the vectorbase- the base of the vector
-
-
Method Details
-
getRandomVector
public long getRandomVector()Returns a random vector based onnandbasevalues specified in the constructor.- Returns:
- a random vector
-