pattern = Pattern(0x2, 0x0, 0x1, 0x0, ); range = [0x0, 0x7]; sample_with_replacement = r{1: 0x0, 1: 0x1, 1: 0x2, }; sample_without_replacement = {1: 0x0, 1: 0x1, 1: 0x2, }; weighted_sample_with_replacement = r{40: 0x0, 50: 0x1, 10: 0x2, }; weighted_sample_without_replacement = {40: 0x0, 50: 0x1, 10: 0x2, };