Machine Learning, Data Science.
dice over and over, and count how many times you get each combination! import matplotlib.pyplot as plt def roll_histogram(samples): rolls = [] for _ in range(samples): rolls.append(roll_dice()) fig, ax = plt.subplots(figsize=(12, 9)) plt.hist(rolls, bins=11) roll_histogram(100000) The histogram