Spaces:
Sleeping
Sleeping
Update pages/1_Probability.py
Browse files- pages/1_Probability.py +1 -1
pages/1_Probability.py
CHANGED
|
@@ -98,7 +98,7 @@ Trail_3 = st.number_input("Number of Trials:", min_value=1, max_value=100, value
|
|
| 98 |
if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_2"):
|
| 99 |
st.write(f"Running {Trail_3} trials...")
|
| 100 |
list1=[]
|
| 101 |
-
for i in range(1,
|
| 102 |
result = random.choice(['Rain', 'No Rain'])
|
| 103 |
list1+=[result]
|
| 104 |
rain=np.sum(np.array(list1)=='Rain')
|
|
|
|
| 98 |
if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_2"):
|
| 99 |
st.write(f"Running {Trail_3} trials...")
|
| 100 |
list1=[]
|
| 101 |
+
for i in range(1, Trail_3 + 1):
|
| 102 |
result = random.choice(['Rain', 'No Rain'])
|
| 103 |
list1+=[result]
|
| 104 |
rain=np.sum(np.array(list1)=='Rain')
|