Question: Random Coin toss sequence lenght

hi, if generate 10 random 0 and 1's by using the following maple code > restart: > coin:=rand(0..1): > coin_1:=proc(n) seq(coin(),i=1..n) end: > data1:=coin_1(10); How can I count the number of sequences that have a lenght equal to 1 zero, 2 zero, 3 zero, 1 one, 2 one, 3 one etc etc and how can I plot it in a histogram to illustrate the law of large numbers alex
Please Wait...