class BitSetUtils {

  public static BitSet getRandomBits(int n, Random random) {
    BitSet bits = new BitSet(n);
    for (int i = 0; i < n; i++) {
      bits.set(i, random.nextBoolean());
    }
    return bits;
  }

  private  BitSetUtils();

}