question: public static DBIDVar randomSample ( DBIDs ids , Random random ) { ArrayDBIDs aids = DBIDUtil . ensureArray ( ids ) ; DBIDVar v = DBIDUtil . newVar ( ) ; aids . assignVar ( random . nextInt ( aids . size ( ) ) , v ) ; return v ; }
target:  Draw a single random sample.