private int[] pickRandCoefficients(int k) {
        int[] rands = new int[k];
        HashSet<Integer> seen = new HashSet<Integer>(k);
        Random random = new Random(seed);
        int i = 0;
        while (k > 0) {
            int randIndex = random.nextInt(maxValue);
            while (seen.contains(randIndex)) {
                randIndex = random.nextInt(maxValue);
            }
            rands[i] = randIndex;
            seen.add(randIndex);
            k = k - 1;
            i++;
        }
        return rands;
    }
Creates a family of universal hash functions.

@param numOfHashes The number of hash functions to generate.
@param seed The seed number used to generate the hash functions.
ache/src/main/java/achecrawler/minhash/MinHasher.java