Class RandomVectorGenerator

java.lang.Object
hlcd.testing.optimizationTester.RandomVectorGenerator

public class RandomVectorGenerator extends Object
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 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 vector
      base - the base of the vector
  • Method Details

    • getRandomVector

      public long getRandomVector()
      Returns a random vector based on n and base values specified in the constructor.
      Returns:
      a random vector