Let’s simulate B and C using uniform distribution function
# Take sample of 1000 random numbers from uniform distribution with min = 0 and max =1
B = runif(1000, min=0, max=1 )
C = runif(1000, min=0, max=1 )
1. Find the probability that B+C < 0.5
result = B + C
print(length(result[result < 0.5])/length(result))
## [1] 0.12
2. Find the probability that BXC < 0.5
result = B * C
print(length(result[result < 0.5])/length(result))
## [1] 0.844
3. Find the probability that ABS(B-C) < 0.5
result = abs(B - C)
print(length(result[result < 0.5])/length(result))
## [1] 0.741
4. Find the probability that MAX(B, C) < 0.5
result = pmax(B, C)
print(length(result[result < 0.5])/length(result))
## [1] 0.231
5. Find the probability that MIN(B, C) < 0.5
result = pmin(B, C)
print(length(result[result < 0.5])/length(result))
## [1] 0.749