When calculating the probability of selecting an onto function, use the principle of inclusion-exclusion. First, calculate the total number of functions, then subtract the cases where the function is not onto, and finally divide by the total number of functions to find the probability.


Match the following:
In the following, \( [x] \) denotes the greatest integer less than or equal to \( x \). 
Choose the correct answer from the options given below:
For x < 0:
f(x) = ex + ax
For x ≥ 0:
f(x) = b(x - 1)2