code: public static DBIDVar randomSample(DBIDs ids, RandomFactory random) {
      return randomSample(ids, random.getSingleThreadedRandom());
    }
docs: Draw a single random sample.
  
  @param ids IDs to draw from
  @param random Random value
  @return Random ID