### Question 3

The function Random(n) is a function which returns an integer between 0 and n-1 with uniform probability. When the following series of operations is executed for the integer type variables A, B and C, what is the probability that C will be 0?

A = Random(10);

B = Random(10);

C = A - B;

a | 1 | b | 1 | c | 1 | d | 1 | |||||||

100 | 20 | 10 |

## No comments:

Post a Comment