Question: Creating and plotting the results of a do loop

Am calculating using the binomial function, and want to plot the output values. So, need to create a vector and plot the values.

Here is the loop,

x := RandomVariable(Binomial(45, 0.9));
for i from 0 to 45 do
    ProbabilityFunction(x, i);
end do;

Cannot seem to find a way to get the output into a list or vector, and then implement the dataplot function .

Many thanks in advance....

Please Wait...