Here, I tried to compute probability of getting one 4 times when I toss a die 6 times. Here is my code,
no=0
import random as rd
for i in range(1000):
l=[rd.randint(1,6) for i in range(6)]
a=l.count(1)
if a==4:
no+=1
print(no/1000)
I want to know, If this is actually a correct Montee Carlo approach of Binomial problem? And Is it correct?