code: public static SparseVector random(int length, double density, Random random) {
          return CompressedVector.random(length, density, random);
      }
docs: Creates a constant {@link SparseVector} of the given {@code length} with
  the given {@code value}.