What does the following code do
int sum = 0;
final int count = 1000;
for (int i = 1; i <= count; i++)
{
sum = sum + (int) (Math.random() * 101);
}
System.out.println(sum / count);
a) It simulates the outcome of throwing a coin.
b) It calculates the average of 1000 random numbers between 0 and 100.
c) It performs Monte Carlo simulation of fluid dynamics.
d) It calculates the average of 1000 random numbers between 1 and 101.