question: returns null if the list is empty or the first element for a size of 1 or returns a random element value concode_field_sep PlaceHolder placeHolder concode_field_sep List<T> filter concode_elem_sep Filter<T> not concode_elem_sep Filter<T> or concode_elem_sep Filter<T> or concode_elem_sep Filter<String> createStringFilter concode_elem_sep Filter<String> createStringFilters concode_elem_sep Filter<T> compositeFilter concode_elem_sep Filter<T> falseFilter concode_elem_sep Filter<String> containsAnyString concode_elem_sep Filter<String> containsString concode_elem_sep boolean isEmpty concode_elem_sep Filter<T> trueFilter concode_elem_sep boolean matches concode_elem_sep boolean matches
target: T function ( List < T > arg0 ) { int loc0 = arg0 . loc0 ( ) ; if ( loc0 < 1 ) { return null ; } else if ( loc0 == 1 ) { return arg0 . get ( 0 ) ; } else { while ( true ) { int loc1 = ( int ) Math . round ( Math . random ( ) * loc0 ) ; if ( loc1 >= 0 && loc1 < loc0 ) { return arg0 . get ( loc1 ) ; } } } }