Extremal Problems For Random Objects