you roll pair of dice as you can seeyou're least likely to roll or and most likely to roll because there are six ways to roll namely and and and and and or and rolling dice of different sizes let' create six-sided die and ten-sided dieand see what happens when we roll them , timesdifferent_ dice py from die import die import pygal create and die_ die( die_ die( make some rollsand store results in list results [for roll_num in range( )result die_ roll(die_ roll(results append(resultanalyze the results --snip-visualize the results hist pygal bar( hist title "results of rolling and , times hist x_labels [' '' '' '' '' '' '' '' '' '' '' '' '' '' '' 'hist x_title "resulthist y_title "frequency of resulthist add(' 'frequencieshist render_to_file('dice_visual svg'to make we pass the argument when creating the second die instance and change the first loop to simulate , rolls instead of the lowest possible result is still but the largest result is now so we adjust the titlex-axis labelsand data series labels to reflect that figure - shows the resulting chart instead of one most likely resultthere are five this happens because there' still only one way to roll the smallest value ( and and the largest value ( and )but the smaller die limits the number of ways you can generate the middle numbersthere are six ways to roll and thereforethese are the most common resultsand you're equally likely to roll any one of these numbers generating data