|
|
|
@ -164,11 +164,15 @@ def get_random_index(): |
|
|
|
|
random_low = random.randint(1, 6 - random_high) |
|
|
|
|
random_middle = 6 - random_high - random_low |
|
|
|
|
print('分布区间(高概率区,中概率区,低概率区):', random_high, random_middle, random_low) |
|
|
|
|
high_red_index_list = [n[0] - 1 for n in new_num(11, random_high)[0:random_high]] |
|
|
|
|
middle_red_index_list = [n[0] - 1 + 10 for n in new_num(11, random_middle)[0:random_middle]] |
|
|
|
|
low_red_index_list = [n[0] - 1 + 20 for n in new_num(11, random_low)[0:random_low]] |
|
|
|
|
high_red_index_list = [(n[0]-1) for n in new_num(1, 11, random_high)[0:random_high]] |
|
|
|
|
middle_red_index_list = [(n[0]-1) for n in new_num(12, 22, random_middle)[0:random_middle]] |
|
|
|
|
low_red_index_list = [(n[0]-1) for n in new_num(23, 33, random_low)[0:random_low]] |
|
|
|
|
print(high_red_index_list) |
|
|
|
|
print(middle_red_index_list) |
|
|
|
|
print(low_red_index_list) |
|
|
|
|
red_index_list = sorted(high_red_index_list + middle_red_index_list + low_red_index_list) |
|
|
|
|
# print(red_index_list) |
|
|
|
|
print(f"排序后结果") |
|
|
|
|
print(red_index_list) |
|
|
|
|
return red_index_list |
|
|
|
|
|
|
|
|
|
|
|
|
|
|