question: returns a random entry from the given collection . uses the prng used by the simulator . returns null if the list is empty . concode_field_sep PlaceHolder placeHolder concode_field_sep void filter concode_elem_sep void copyNSortedAndFiltered concode_elem_sep void filterMap concode_elem_sep void copyNSorted concode_elem_sep double getQuantile concode_elem_sep void splitMap concode_elem_sep List<T> getRandomPartFrom concode_elem_sep void copyUntilFull concode_elem_sep List<Tt> transformList
target: E function ( Collection < E > arg0 ) { if ( arg0 instanceof List ) return getRandomEntry ( ( List < E > ) arg0 ) ; if ( arg0 . size ( ) == 0 ) return null ; int loc0 = Simulator . getRandom ( ) . nextInt ( arg0 . size ( ) ) ; for ( E loc1 : arg0 ) { if ( loc0 <= 0 ) return loc1 ; loc0 -- ; } return null ; }